Skip to content

Commit

Permalink
Fixes the fact that an Anonymous see global chat bar - Refs 7890
Browse files Browse the repository at this point in the history
  • Loading branch information
jloguercio committed Oct 13, 2015
1 parent 036951c commit f329f5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/inc/lib/api.lib.php
Expand Up @@ -3297,7 +3297,7 @@ function api_is_anonymous($user_id = null, $db_check = false) {
return true;
}

return isset($_user['is_anonymous']) && $_user['is_anonymous'] === true;
return ((isset($_user['is_anonymous']) && $_user['is_anonymous'] === true) || $_user === false);
}

/**
Expand Down

0 comments on commit f329f5d

Please sign in to comment.