summaryrefslogtreecommitdiffstats
path: root/lib/private/User/Database.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/User/Database.php')
-rw-r--r--lib/private/User/Database.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/User/Database.php b/lib/private/User/Database.php
index dccdb790145..73c918e9944 100644
--- a/lib/private/User/Database.php
+++ b/lib/private/User/Database.php
@@ -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;
}