]> source.dussan.org Git - nextcloud-server.git/commitdiff
remove non required db requests
authorLoki3000 <github@labcms.ru>
Tue, 10 Jan 2017 10:05:21 +0000 (13:05 +0300)
committerGitHub <noreply@github.com>
Tue, 10 Jan 2017 10:05:21 +0000 (13:05 +0300)
lib/private/Group/Database.php

index e4144fdbe200e3b2cdf4753878b424d5e8250270..5fe5cf14f399daa57d5521970866285388289c55 100644 (file)
@@ -202,8 +202,11 @@ class Database extends \OC\Group\Backend {
         * if the user exists at all.
         */
        public function getUserGroups( $uid ) {
+               //guests has empty $uid
+               if (empty($uid)) return [];
+               
                $this->fixDI();
-
+               
                // No magic!
                $qb = $this->dbConn->getQueryBuilder();
                $cursor = $qb->select('gid')