diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-11-06 10:40:09 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-11-06 10:40:09 +0100 |
commit | 292dc553c3bea72deff20392baec1055aaa88446 (patch) | |
tree | 02e2e8ffb595acaaf1115faf67f78d37a439b17b /lib/private | |
parent | bf941032a39047cc948af5887e43f664d05e1e40 (diff) | |
download | nextcloud-server-292dc553c3bea72deff20392baec1055aaa88446.tar.gz nextcloud-server-292dc553c3bea72deff20392baec1055aaa88446.zip |
Make sure that group names are strings not integers
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/group/manager.php | 4 |
1 files changed, 3 insertions, 1 deletions
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))); } /** |