diff --git a/addressbook/inc/class.addressbook_ldap.inc.php b/addressbook/inc/class.addressbook_ldap.inc.php index bd2c33bb98..9fde4a96e6 100644 --- a/addressbook/inc/class.addressbook_ldap.inc.php +++ b/addressbook/inc/class.addressbook_ldap.inc.php @@ -826,7 +826,7 @@ class addressbook_ldap $entries = ldap_get_entries($this->ds, $result); $this->total = $entries['count']; - foreach($entries as $i => $entry) + foreach((array)$entries as $i => $entry) { if (!is_int($i)) continue; // eg. count