From: Raphaël Barrois Date: Mon, 8 Mar 2010 00:57:50 +0000 (+0100) Subject: Bugfix in PlIteratorUtils::getArrayValueCallback X-Git-Tag: core/1.1.0~59 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=381a28e9a41563eb2c440fb3115aa58f4f1a6ed1;p=platal.git Bugfix in PlIteratorUtils::getArrayValueCallback Signed-off-by: Raphaël Barrois --- 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; }