summaryrefslogtreecommitdiffstats
path: root/lib/private/group
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-03-07 11:57:05 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-03-07 11:57:05 +0100
commit69d7097a1a07cf31fcfb90c9d6b91aebd50f977c (patch)
treef0eb50242964b04897192a3ae2e844f2e1350b0e /lib/private/group
parentc07b731689de6fe754e108688ccf71342aad95ef (diff)
downloadnextcloud-server-69d7097a1a07cf31fcfb90c9d6b91aebd50f977c.tar.gz
nextcloud-server-69d7097a1a07cf31fcfb90c9d6b91aebd50f977c.zip
Make sure that the return value is an array
Diffstat (limited to 'lib/private/group')
-rw-r--r--lib/private/group/manager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/group/manager.php b/lib/private/group/manager.php
index 84e3ac7dbf3..e82a1d4f2e6 100644
--- a/lib/private/group/manager.php
+++ b/lib/private/group/manager.php
@@ -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());
}