summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/Group/Database.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/Group/Database.php b/lib/private/Group/Database.php
index 5fe5cf14f39..f79fe9ad753 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!