Followup r70875, fix default value for decode()
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 11 Aug 2010 13:03:45 +0000 (13:03 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 11 Aug 2010 13:03:45 +0000 (13:03 +0000)
includes/json/FormatJson.php

index ee9d800..cacf668 100644 (file)
@@ -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 );