From 71b3033b3500d5a6c0b008e5ff71ac53229ffdda Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 7 Mar 2016 11:57:05 +0100 Subject: [PATCH] Make sure that the return value is an array --- lib/private/group/manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/group/manager.php b/lib/private/group/manager.php index 84e3ac7dbf..e82a1d4f2e 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()); }