diff --git a/logout.php b/logout.php index a6723d8dc9..6f5228c5a2 100755 --- a/logout.php +++ b/logout.php @@ -46,15 +46,18 @@ } else { - $GLOBALS['phpgw']->log->write(array( - 'text' => 'W-VerifySession, could not verify session during logout', - 'line' => __LINE__, - 'file' => __FILE__ - )); + if(is_object($GLOBALS['phpgw']->log) + { + $GLOBALS['phpgw']->log->write(array( + 'text' => 'W-VerifySession, could not verify session during logout', + 'line' => __LINE__, + 'file' => __FILE__ + )); + } } Setcookie('sessionid'); Setcookie('kp3'); Setcookie('domain'); $GLOBALS['phpgw']->redirect($GLOBALS['phpgw_info']['server']['webserver_url'].'/login.php?cd=1'); -?> \ No newline at end of file +?>