Merge pull request #874 from jloguercio/7890

Fixes the fact that an Anonymous see global chat bar - Refs #7890
1.10.x
Yannick Warnier 9 years ago
commit 7877319d04
  1. 2
      main/inc/lib/api.lib.php

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

Loading…
Cancel
Save