diff --git a/lib/private/Group/Database.php b/lib/private/Group/Database.php index 5fe5cf14f3..f79fe9ad75 100644 --- a/lib/private/Group/Database.php +++ b/lib/private/Group/Database.php @@ -203,8 +203,10 @@ class Database extends \OC\Group\Backend { */ public function getUserGroups( $uid ) { //guests has empty $uid - if (empty($uid)) return []; - + if (empty($uid)) { + return []; + } + $this->fixDI(); // No magic!