summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-07-17 17:06:01 +0000
committerthomascube <thomas@roundcube.net>2011-07-17 17:06:01 +0000
commitce4e0ece1f8021abbc5cfbefa328be8acb5aac7c (patch)
tree4589541b45ff314615de6ff6b53df2edae714d7e /program/include
parentd78d2ed056c92cfdb4f5b0ad99bf2d9d9b0fbd5c (diff)
Fix ldap group members listing
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_ldap.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/program/include/rcube_ldap.php b/program/include/rcube_ldap.php
index 4205df271..2fb25ab44 100644
--- a/program/include/rcube_ldap.php
+++ b/program/include/rcube_ldap.php
@@ -1045,9 +1045,10 @@ class rcube_ldap extends rcube_addressbook
$cache_members = $this->group_cache[$group_id]['members'];
$members = array();
- for ($i=1; $i<$cache_members["count"]; $i++)
+ for ($i=0; $i<$cache_members["count"]; $i++)
{
- $members[base64_encode($cache_members[$i])] = 1;
+ if (!empty($cache_members[$i]))
+ $members[base64_encode($cache_members[$i])] = 1;
}
$this->group_members = $members;
$this->group_id = $group_id;