From 381a28e9a41563eb2c440fb3115aa58f4f1a6ed1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Barrois?= Date: Mon, 8 Mar 2010 01:57:50 +0100 Subject: [PATCH] Bugfix in PlIteratorUtils::getArrayValueCallback MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaël Barrois --- classes/pliteratorutils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/pliteratorutils.php b/classes/pliteratorutils.php index 46e0802..db10927 100644 --- a/classes/pliteratorutils.php +++ b/classes/pliteratorutils.php @@ -542,8 +542,8 @@ class _GetArrayValueCallback public function get(array $arr) { - if (array_key_exists($key, $arr)) { - return $arr[$key]; + if (array_key_exists($this->key, $arr)) { + return $arr[$this->key]; } else { return null; } -- 2.1.4