Skip to content

Commit

Permalink
Change Tools::jsonEncode to json_encode
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRambaud committed Oct 19, 2021
1 parent 5bc8bbf commit b6ac84e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphnvd3.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,6 @@ public function draw()
$nvd3_values[] = array('x' => $x, 'y' => $y);
$array['data'][] = array('values' => $nvd3_values, 'key' => $this->_titles['main'][$layer]);
}
echo preg_replace('/"([0-9]+)"/', '$1', Tools::jsonEncode($array));
echo preg_replace('/"([0-9]+)"/', '$1', json_encode($array));
}
}

0 comments on commit b6ac84e

Please sign in to comment.