diff --git a/graphnvd3.php b/graphnvd3.php index cdb84a0..135cb17 100644 --- a/graphnvd3.php +++ b/graphnvd3.php @@ -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)); } }