]> source.dussan.org Git - nextcloud-server.git/commitdiff
user ids are strings 4150/head
authorRobin Appelman <robin@icewind.nl>
Thu, 30 Mar 2017 10:24:46 +0000 (12:24 +0200)
committerRobin Appelman <robin@icewind.nl>
Thu, 30 Mar 2017 10:24:46 +0000 (12:24 +0200)
Signed-off-by: Robin Appelman <robin@icewind.nl>
lib/private/User/Database.php

index 22b335ebfbd74c79d1b74b63d5a00e0c04e9f39b..73506c7d7c59abd9c034a8eafcee37df5b6bc28f 100644 (file)
@@ -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;
                        }