Merge pull request #22904 from owncloud/get-user-groups-should-return-an-array
Make sure that the return value is an array
This commit is contained in:
commit
3b7a59f66b
|
@ -227,7 +227,7 @@ class Manager extends PublicEmitter implements IGroupManager {
|
|||
*/
|
||||
public function getUserGroups($user) {
|
||||
if (is_null($user)) {
|
||||
return false;
|
||||
return [];
|
||||
}
|
||||
return $this->getUserIdGroups($user->getUID());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue