From: Robin Appelman Date: Thu, 30 Mar 2017 10:24:46 +0000 (+0200) Subject: user ids are strings X-Git-Tag: v12.0.0beta1~249^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F4150%2Fhead;p=nextcloud-server.git user ids are strings Signed-off-by: Robin Appelman --- 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; }