From: Janusz Dobrowolski Date: Sat, 19 Jan 2013 11:10:11 +0000 (+0100) Subject: Fixed 'page expired' prevention (white screen/warnings after session timout). X-Git-Tag: 2.3-final~338 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=99c2cabd9d1c786f1335d7261b71499a5aadf08f;p=fa-stable.git Fixed 'page expired' prevention (white screen/warnings after session timout). --- diff --git a/includes/session.inc b/includes/session.inc index 37591d34..f68dd38e 100644 --- a/includes/session.inc +++ b/includes/session.inc @@ -451,7 +451,7 @@ if (strstr($_SERVER['PHP_SELF'], 'logout.php') == false){ // Incorrect password login_fail(); } - elseif(!$_SESSION['timeout']['post']) + elseif(isset($_SESSION['timeout']) && !$_SESSION['timeout']['post']) { // in case of GET request redirect to avoid confirmation dialog // after return from menu option