Quiet error when calling logout when already logged out
This commit is contained in:
parent
eb4b7f248d
commit
5482d3b3d5
|
@ -105,7 +105,7 @@ function validateUser($username='', $password='') {
|
|||
|
||||
function userLogout() {
|
||||
global $user;
|
||||
ZM\Info('User "'.$user['Username'].'" logged out');
|
||||
ZM\Info('User "'.($user?$user['Username']:'no one').'" logged out');
|
||||
$user = null;// unset only clears the local variable
|
||||
zm_session_clear();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue