diff options
author | Robin Appelman <robin@icewind.nl> | 2017-03-30 12:24:46 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-03-30 12:24:46 +0200 |
commit | 0aeb5957840866e77391809f16999222dbb0b12a (patch) | |
tree | 29ecc787879dc1788e4875c4e79a021c1edcc8b7 /lib | |
parent | dc4b98363956b1617749ff0abced8f68a6a5da49 (diff) | |
download | nextcloud-server-0aeb5957840866e77391809f16999222dbb0b12a.tar.gz nextcloud-server-0aeb5957840866e77391809f16999222dbb0b12a.zip |
user ids are strings
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/User/Database.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/User/Database.php b/lib/private/User/Database.php index 22b335ebfbd..73506c7d7c5 100644 --- a/lib/private/User/Database.php +++ b/lib/private/User/Database.php @@ -237,9 +237,10 @@ class Database extends Backend implements IUserBackend { * @return boolean true if user was found, false otherwise */ private function loadUser($uid) { + $uid = (string) $uid; if (!isset($this->cache[$uid])) { //guests $uid could be NULL or '' - if ($uid === null || $uid === '') { + if ($uid === '') { $this->cache[$uid]=false; return true; } |