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

index 203b6d9f9374d31ac0545eee4143b3615433f5b8..938c267c7f177c4665f135de6646a96c059893ab 100644 (file)
@@ -202,8 +202,8 @@ class Database extends \OC\Group\Backend {
         * if the user exists at all.
         */
        public function getUserGroups( $uid ) {
-               //guests has empty $uid
-               if (empty($uid)) {
+               //guests has empty or null $uid
+               if ($uid===null || $uid==='') {
                        return [];
                }