summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
Diffstat (limited to 'program')
-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;