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

Undefined offset Objects\Ldap\Entry.php #104

Open ghost opened 8 years ago

ghost commented 8 years ago

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++) {
filipe1309 commented 8 years ago

Hi,

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

Although they do not update for more than one year.