Index: trunk/phase3/includes/json/FormatJson.php |
— | — | @@ -54,10 +54,8 @@ |
55 | 55 | */ |
56 | 56 | public static function decode( $value, $assoc = false ) { |
57 | 57 | if ( !function_exists( 'json_decode' ) ) { |
58 | | - if( $assoc ) |
59 | | - $json = new Services_JSON( SERVICES_JSON_LOOSE_TYPE ); |
60 | | - else |
61 | | - $json = new Services_JSON(); |
| 58 | + $json = $assoc ? new Services_JSON( SERVICES_JSON_LOOSE_TYPE ) : |
| 59 | + new Services_JSON(); |
62 | 60 | $jsonDec = $json->decode( $value ); |
63 | 61 | return $jsonDec; |
64 | 62 | } else { |