Don't throw a notice if the modified date isn't stored yet
authorChuck Hagenbuch <chuck@horde.org>
Fri, 5 Nov 2010 18:52:18 +0000 (14:52 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Fri, 5 Nov 2010 18:52:18 +0000 (14:52 -0400)
framework/Core/lib/Horde/Session.php

index 74233b1..1b66caa 100644 (file)
@@ -123,7 +123,7 @@ class Horde_Session
              * we are accessing the server via a periodic mechanism (think
              * folder refreshing in IMP) that we will catch this refresh. */
             $curr_time = time();
-            if ($curr_time >= $_SESSION[self::MODIFIED]) {
+            if (!isset($_SESSION[self::MODIFIED]) || $curr_time >= $_SESSION[self::MODIFIED]) {
                 $_SESSION[self::MODIFIED] = intval($curr_time + (ini_get('session.gc_maxlifetime') / 2));
                 $this->sessionHandler->changed = true;
             }