From: Chuck Hagenbuch Date: Fri, 5 Nov 2010 18:52:18 +0000 (-0400) Subject: Don't throw a notice if the modified date isn't stored yet X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=a6237a128684fa0c5b8f93919294f09fde9f6c2c;p=horde.git Don't throw a notice if the modified date isn't stored yet --- diff --git a/framework/Core/lib/Horde/Session.php b/framework/Core/lib/Horde/Session.php index 74233b1d4..1b66caab5 100644 --- a/framework/Core/lib/Horde/Session.php +++ b/framework/Core/lib/Horde/Session.php @@ -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; }