X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fjson%2FFormatJson.php;h=0c77a7bcc2d90bae6958602e6ce254022bb5b333;hb=86ae6cc9a8927535f0b699909bb8f0e580bd0665;hp=41541ef4d60ac69f815cfce8cbfe13a073dadf63;hpb=4518a5a86ce81faff53407d4603b8643144a9d33;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/json/FormatJson.php b/includes/json/FormatJson.php index 41541ef4d6..0c77a7bcc2 100644 --- a/includes/json/FormatJson.php +++ b/includes/json/FormatJson.php @@ -216,7 +216,7 @@ class FormatJson { $count = 0; $value = preg_replace( '/,([ \t]*[}\]][^"\r\n]*([\r\n]|$)|[ \t]*[\r\n][ \t\r\n]*[}\]])/', '$1', - $value, - 1, $count ); + $value, -1, $count ); if ( $count > 0 ) { $result = json_decode( $value, $assoc ); if ( JSON_ERROR_NONE === json_last_error() ) {