fix wired PHP Fatal error: Call to a member function commit_session on null, thought isset should stop that ...

This commit is contained in:
Ralf Becker 2015-08-02 09:04:57 +00:00
parent d044e75c9c
commit 7bf6a497b0

View File

@ -591,7 +591,7 @@ class egw extends egw_minimal
}
// now we can close the session
// without closing the session fastcgi_finish_request() will NOT send output to user
if (isset($GLOBALS['egw']->session)) $GLOBALS['egw']->session->commit_session();
if (isset($GLOBALS['egw']->session) && is_object($GLOBALS['egw']->session)) $GLOBALS['egw']->session->commit_session();
// flush all output to user
/* does NOT work on Apache :-(