* 3983#c3983 array casting does not work so well on json_decode arrays... object2arra...
authorMichael Dale <dale@users.mediawiki.org>
Thu, 10 Sep 2009 19:24:56 +0000 (19:24 +0000)
committerMichael Dale <dale@users.mediawiki.org>
Thu, 10 Sep 2009 19:24:56 +0000 (19:24 +0000)
includes/json/FormatJson.php

index 024148f..3fbb21b 100644 (file)
@@ -23,7 +23,7 @@ class FormatJson{
                        $json = new Services_JSON();
                        $jsonDec = $json->decode($value);
                        if($assoc)
-                               $jsonDec = (array) $jsonDec;
+                               $jsonDec = wfObjectToArray( $jsonDec );
                        return $jsonDec;
                } else {
                        return json_decode($value, $assoc);