From 292dc553c3bea72deff20392baec1055aaa88446 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 6 Nov 2015 10:40:09 +0100 Subject: Make sure that group names are strings not integers --- lib/private/group/manager.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/private/group') diff --git a/lib/private/group/manager.php b/lib/private/group/manager.php index 0f6ba7f24e0..73ff0e537c6 100644 --- a/lib/private/group/manager.php +++ b/lib/private/group/manager.php @@ -263,7 +263,9 @@ class Manager extends PublicEmitter implements IGroupManager { * @return array with group ids */ public function getUserGroupIds($user) { - return array_keys($this->getUserGroups($user)); + return array_map(function($value) { + return (string) $value; + }, array_keys($this->getUserGroups($user))); } /** -- cgit v1.2.3