adldap / adLDAP

adLDAP is a PHP class that provides LDAP authentication and integration with Active Directory.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Undefined offset Objects\Ldap\Entry.php

opened this issue · comments

Hello,

I receive an undefined offset in the file "Objects\Ldap\Entry.php" at line 52.

When i look into this i see that there's a for loop counting from 0 until 'count'. When count is 4, it wil continue to 4 but should continue to 3 since the array starts with 0.

So line 51 is now:

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

But should be:

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

Hi,

I had the same problem . I expect them to fix it soon.

Although they do not update for more than one year.