Quiet error when calling logout when already logged out

This commit is contained in:
Isaac Connor 2020-12-09 17:56:09 -05:00
parent eb4b7f248d
commit 5482d3b3d5
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}