From e326786aa9f19f41c10f04725cc211437e766b3d Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 17 Sep 2008 06:34:29 +0000 Subject: [PATCH] Updated config. -Fixed problem with session lifetime check. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12493 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_config.inc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/gosa-core/include/class_config.inc b/gosa-core/include/class_config.inc index cfa9beb8e..b3361539d 100644 --- a/gosa-core/include/class_config.inc +++ b/gosa-core/include/class_config.inc @@ -985,10 +985,14 @@ class config { */ function check_session_lifetime() { - $cfg_lifetime = $this->data['MAIN']['SESSIONLIFETIME']; - $ini_lifetime = ini_get('session.gc_maxlifetime'); - $deb_system = file_exists('/etc/debian_version'); - return(!($deb_system && ($ini_lifetime < $cfg_lifetime))); + if(isset($this->data['MAIN']['SESSIONLIFETIME'])){ + $cfg_lifetime = $this->data['MAIN']['SESSIONLIFETIME']; + $ini_lifetime = ini_get('session.gc_maxlifetime'); + $deb_system = file_exists('/etc/debian_version'); + return(!($deb_system && ($ini_lifetime < $cfg_lifetime))); + }else{ + return(TRUE); + } } } -- 2.30.2