diff options
Diffstat (limited to 'lib/private/Group/Database.php')
-rw-r--r-- | lib/private/Group/Database.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/Group/Database.php b/lib/private/Group/Database.php index e4144fdbe20..5fe5cf14f39 100644 --- a/lib/private/Group/Database.php +++ b/lib/private/Group/Database.php @@ -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') |