mirror of
https://github.com/nextcloud/server.git
synced 2026-06-06 23:34:22 -04:00
Merge pull request #22908 from owncloud/backport-22904-group-manager-wrong-return
[9.0] Make sure that the return value is an array
This commit is contained in:
commit
e2b43c4095
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue