Code

Updated config.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 Sep 2008 06:34:29 +0000 (06:34 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 Sep 2008 06:34:29 +0000 (06:34 +0000)
-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

index cfa9beb8e6a41e2e6487ba7176a09cc3b8839b8d..b3361539d2f462f0fd7a9ce13e439cc350560658 100644 (file)
@@ -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);
+    }
   }
 }