summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-11-06 11:48:40 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-11-06 11:48:40 +0100
commitcc4f4f222d15c22c31aa910d06124534dd69740d (patch)
treecd41a0476cd91d8c3c3c93ee51b1c0bbba3d07b5 /lib/private
parent8047597a81e06ec3f5fced6f1f48b4194d368305 (diff)
parent292dc553c3bea72deff20392baec1055aaa88446 (diff)
downloadnextcloud-server-cc4f4f222d15c22c31aa910d06124534dd69740d.tar.gz
nextcloud-server-cc4f4f222d15c22c31aa910d06124534dd69740d.zip
Merge pull request #20348 from owncloud/issue-20303-integer-group-names
Make sure that group names are strings not integers
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/group/manager.php4
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)));
}
/**