From 583209066a871b682e9e944efb7940e76ce4b92a Mon Sep 17 00:00:00 2001 From: dev_yaroslav Date: Tue, 26 Jul 2016 17:37:04 +0300 Subject: [PATCH] PHP Notice: Undefined offset: 2 adldap\adldap\src\Objects\Ldap\Entry.php at line 52 --- src/Objects/Ldap/Entry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Objects/Ldap/Entry.php b/src/Objects/Ldap/Entry.php index d21da38..0a689b7 100644 --- a/src/Objects/Ldap/Entry.php +++ b/src/Objects/Ldap/Entry.php @@ -48,7 +48,7 @@ private function applyAttributes($attributes) if (array_key_exists('count', $attributes[$key]) && $attributes[$key]['count'] > 1) { $data = []; - for ($i = 0; $i <= $attributes[$key]['count']; $i++) { + for ($i = 0; $i < $attributes[$key]['count']; $i++) { $data[] = $attributes[$key][$i]; }