diff --git a/phpgwapi/inc/class.egw.inc.php b/phpgwapi/inc/class.egw.inc.php index 6eb7b283d6..5c84a0dad2 100644 --- a/phpgwapi/inc/class.egw.inc.php +++ b/phpgwapi/inc/class.egw.inc.php @@ -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 :-(