]> source.dussan.org Git - nextcloud-server.git/commitdiff
allowed '0' uid
authorLoki3000 <github@labcms.ru>
Tue, 10 Jan 2017 13:39:10 +0000 (16:39 +0300)
committerGitHub <noreply@github.com>
Tue, 10 Jan 2017 13:39:10 +0000 (16:39 +0300)
lib/private/User/Database.php

index dccdb790145a7328c9bbe4b87f8aa5b8f9d9d528..73c918e9944c99c2d0a5be9a2f8ce3712b01d125 100644 (file)
@@ -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;
                        }