From 7e9bbeb3e98460de6310cb325494eb4ffbf46d95 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Wed, 12 Dec 2001 16:09:41 +0000 Subject: [PATCH] wrap log object in is_object --- logout.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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 +?>