summaryrefslogtreecommitdiff
path: root/plugins/kolab_auth/kolab_auth.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/kolab_auth/kolab_auth.php')
-rw-r--r--plugins/kolab_auth/kolab_auth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/kolab_auth/kolab_auth.php b/plugins/kolab_auth/kolab_auth.php
index 719df98..f511949 100644
--- a/plugins/kolab_auth/kolab_auth.php
+++ b/plugins/kolab_auth/kolab_auth.php
@@ -337,7 +337,7 @@ class kolab_auth extends rcube_plugin
// check group
if (!$isadmin && !empty($group)) {
$groups = $ldap->get_record_groups($record['ID']);
- foreach ($groups as $g => $prop) {
+ foreach (array_keys($groups) as $g) {
if ($group == rcube_ldap::dn_decode($g)) {
$isadmin = true;
break;