Skip to content

Commit

Permalink
Fix regression in third-party JSON utility
Browse files Browse the repository at this point in the history
  • Loading branch information
annda committed Jan 31, 2019
1 parent 76e41fc commit 3f074cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/JSON.php
Expand Up @@ -502,8 +502,8 @@ function reduce_string($str)
*/
function decode($str)
{
if (!$this->skipnative && function_exists('json_encode')){
return json_encode($str);
if (!$this->skipnative && function_exists('json_decode')){
return json_decode($str,($this->use == JSON_LOOSE_TYPE));
}

$str = $this->reduce_string($str);
Expand Down

0 comments on commit 3f074cb

Please sign in to comment.