From f6a57deb50c8ae33d0e4420a65e10b7977776233 Mon Sep 17 00:00:00 2001 From: Michael Dale Date: Thu, 10 Sep 2009 19:24:56 +0000 Subject: [PATCH] * 3983#c3983 array casting does not work so well on json_decode arrays... object2array should work --- includes/json/FormatJson.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/json/FormatJson.php b/includes/json/FormatJson.php index 024148f906..3fbb21bf54 100644 --- a/includes/json/FormatJson.php +++ b/includes/json/FormatJson.php @@ -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); -- 2.20.1