diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-07-20 18:56:18 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-07-20 18:56:18 +0200 |
commit | c9be9ab251681d96cfb620ca26778ba0005023d3 (patch) | |
tree | 9546e40b893abf3970ba7554edcf7829d782314d /lib/group/dummy.php | |
parent | 7152b8b4ee2f0d4de640868b614992e8aaf00803 (diff) | |
download | nextcloud-server-c9be9ab251681d96cfb620ca26778ba0005023d3.tar.gz nextcloud-server-c9be9ab251681d96cfb620ca26778ba0005023d3.zip |
remove unused variables
Diffstat (limited to 'lib/group/dummy.php')
-rw-r--r-- | lib/group/dummy.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/group/dummy.php b/lib/group/dummy.php index 0825b10708a..1243891023f 100644 --- a/lib/group/dummy.php +++ b/lib/group/dummy.php @@ -126,7 +126,8 @@ class OC_Group_Dummy extends OC_Group_Backend { */ public function getUserGroups($uid){ $groups=array(); - foreach($this->groups as $group=>$user){ + $allGroups=array_keys($this->groups); + foreach($allGroups as $group){ if($this->inGroup($uid,$group)){ $groups[]=$group; } |