adldap / adLDAP

adLDAP is a PHP class that provides LDAP authentication and integration with Active Directory.
GNU Lesser General Public License v2.1
424 stars 204 forks source link

PHP Notice in Entry.php line 52 #82

Open szaqal83 opened 9 years ago

szaqal83 commented 9 years ago

After calling:

$result = $adldap->group()->members('Gr_QNT_Uzytkownicy', array('cn'));

PHP throws:

Notice: Undefined offset ...

because of wrong condition in for loop in line 51:

for ($i = 0; $i <= $attributes[$key]['count']; $i++) {

condition should be (lower than):

for ($i = 0; $i < $attributes[$key]['count']; $i++) {
henriquebremenkanp commented 9 years ago

Just ran into it too.