Make sure that the return value is an array

This commit is contained in:
Joas Schilling 2016-03-07 11:57:05 +01:00
parent c07b731689
commit 69d7097a1a
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ class Manager extends PublicEmitter implements IGroupManager {
*/ */
public function getUserGroups($user) { public function getUserGroups($user) {
if (is_null($user)) { if (is_null($user)) {
return false; return [];
} }
return $this->getUserIdGroups($user->getUID()); return $this->getUserIdGroups($user->getUID());
} }