Bugfix in PlIteratorUtils::getArrayValueCallback
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Mon, 8 Mar 2010 00:57:50 +0000 (01:57 +0100)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Mon, 8 Mar 2010 00:57:50 +0000 (01:57 +0100)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
classes/pliteratorutils.php

index 46e0802..db10927 100644 (file)
@@ -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;
         }