summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-02-15 08:28:14 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-02-15 08:28:14 +0000
commitfc0ea726f155c37fbe9094ab2dbd8b7fb3ba5abe (patch)
tree848a43f33808138e503b9d177ac53ac36c06fa2e /roundcubemail/program/include
parent03accefe5f039c734843c039e363f91efaaf4d48 (diff)
Skip empty group members (seen in OpenLDAP backends)
git-svn-id: https://svn.roundcube.net/trunk@5878 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
-rw-r--r--roundcubemail/program/include/rcube_ldap.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/roundcubemail/program/include/rcube_ldap.php b/roundcubemail/program/include/rcube_ldap.php
index 70ae263ad..5eab7dba0 100644
--- a/roundcubemail/program/include/rcube_ldap.php
+++ b/roundcubemail/program/include/rcube_ldap.php
@@ -611,6 +611,9 @@ class rcube_ldap extends rcube_addressbook
for ($i=0; $i < $entry[$attr]['count']; $i++)
{
+ if (empty($entry[$attr][$i]))
+ continue;
+
$result = @ldap_read($this->conn, $entry[$attr][$i], '(objectclass=*)',
$attrib, 0, (int)$this->prop['sizelimit'], (int)$this->prop['timelimit']);