forked from extern/egroupware
wrap log object in is_object
This commit is contained in:
parent
c332b62e15
commit
7e9bbeb3e9
15
logout.php
15
logout.php
@ -46,15 +46,18 @@
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$GLOBALS['phpgw']->log->write(array(
|
if(is_object($GLOBALS['phpgw']->log)
|
||||||
'text' => 'W-VerifySession, could not verify session during logout',
|
{
|
||||||
'line' => __LINE__,
|
$GLOBALS['phpgw']->log->write(array(
|
||||||
'file' => __FILE__
|
'text' => 'W-VerifySession, could not verify session during logout',
|
||||||
));
|
'line' => __LINE__,
|
||||||
|
'file' => __FILE__
|
||||||
|
));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Setcookie('sessionid');
|
Setcookie('sessionid');
|
||||||
Setcookie('kp3');
|
Setcookie('kp3');
|
||||||
Setcookie('domain');
|
Setcookie('domain');
|
||||||
|
|
||||||
$GLOBALS['phpgw']->redirect($GLOBALS['phpgw_info']['server']['webserver_url'].'/login.php?cd=1');
|
$GLOBALS['phpgw']->redirect($GLOBALS['phpgw_info']['server']['webserver_url'].'/login.php?cd=1');
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user