From 8cd1707736809e795d9375529489240f414dc1ad Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 11 Apr 2018 15:04:48 +0200 Subject: [PATCH] fix shutdown functions did not have $GLOBALS[egw] set, caused by session created by MServer --- api/src/Session.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/src/Session.php b/api/src/Session.php index 55c45c23b4..0b261be8bb 100644 --- a/api/src/Session.php +++ b/api/src/Session.php @@ -1588,6 +1588,9 @@ class Session /** * Initialise the used session handler + * + * @return boolean true if we have a session, false otherwise + * @throws \ErrorException if there is no PHP session support */ public static function init_handler() { @@ -1607,6 +1610,9 @@ class Session if (self::ERROR_LOG_DEBUG) error_log(__METHOD__."() sessionid=$sessionid, _SESSION[".self::EGW_SESSION_VAR.']='.array2string($_SESSION[self::EGW_SESSION_VAR])); return $ok; } + break; + case PHP_SESSION_ACTIVE: + return true; // session created by MServer } if (self::ERROR_LOG_DEBUG) error_log(__METHOD__."() no active session!");