From 0aeb5957840866e77391809f16999222dbb0b12a Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 30 Mar 2017 12:24:46 +0200 Subject: [PATCH] user ids are strings Signed-off-by: Robin Appelman --- lib/private/User/Database.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/private/User/Database.php b/lib/private/User/Database.php index 22b335ebfb..73506c7d7c 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; }