From af610e03afaeaeeb76187becd61bfe6da255c5e4 Mon Sep 17 00:00:00 2001 From: Adam Malantonio Date: Sun, 28 Jun 2015 09:42:05 -0400 Subject: [PATCH] Quickfix for Undefined Offset notice Uses `<` instead of `<=` in the `for` loop within `Entry::applyAttributes` to prevent an Undefined Offset notice from being thrown. --- 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]; }