diff options
author | thomascube <thomas@roundcube.net> | 2012-02-15 08:28:14 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2012-02-15 08:28:14 +0000 |
commit | 3ed9e80cd60c3d9a72c4d37ebeda7fea4d042f42 (patch) | |
tree | f5a7ccc23c8829d9eae3b5831903d6b94a036615 | |
parent | 18a3dcaf56aa8d650db8c791cdba90fcd38468ab (diff) |
Skip empty group members (seen in OpenLDAP backends)
-rw-r--r-- | program/include/rcube_ldap.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/program/include/rcube_ldap.php b/program/include/rcube_ldap.php index 70ae263ad..5eab7dba0 100644 --- a/program/include/rcube_ldap.php +++ b/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']); |