allowed '0' uid
This commit is contained in:
parent
b7e6c5ecdf
commit
5c77923360
|
@ -239,7 +239,7 @@ class Database extends Backend implements IUserBackend {
|
|||
private function loadUser($uid) {
|
||||
if (!isset($this->cache[$uid])) {
|
||||
//guests $uid could be NULL or ''
|
||||
if (empty($uid)) {
|
||||
if ($uid===null || $uid==='') {
|
||||
$this->cache[$uid]=false;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue