wrap log object in is_object

This commit is contained in:
Miles Lott 2001-12-12 16:09:41 +00:00
parent c332b62e15
commit 7e9bbeb3e9

View File

@ -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');
?>
?>