diff options
author | thomascube <thomas@roundcube.net> | 2011-07-17 17:06:01 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2011-07-17 17:06:01 +0000 |
commit | ce4e0ece1f8021abbc5cfbefa328be8acb5aac7c (patch) | |
tree | 4589541b45ff314615de6ff6b53df2edae714d7e /program/include/rcube_ldap.php | |
parent | d78d2ed056c92cfdb4f5b0ad99bf2d9d9b0fbd5c (diff) |
Fix ldap group members listing
Diffstat (limited to 'program/include/rcube_ldap.php')
-rw-r--r-- | program/include/rcube_ldap.php | 5 |
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; |