From ddbca1b0390ceae9faa27377416d7fd9f9831274 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 11 Aug 2010 13:03:45 +0000 Subject: [PATCH] Followup r70875, fix default value for decode() --- 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 ee9d80083a..cacf6680fc 100644 --- a/includes/json/FormatJson.php +++ b/includes/json/FormatJson.php @@ -19,7 +19,7 @@ class FormatJson { } } - public static function decode( $value, $assoc = self::AS_ARRAY ) { + public static function decode( $value, $assoc = false ) { if ( !function_exists( 'json_decode' ) ) { $json = new Services_JSON(); $jsonDec = $json->decode( $value ); -- 2.20.1