From b6ac84e509f01f6521a2ce391fa0914af3b9b143 Mon Sep 17 00:00:00 2001 From: Pierre RAMBAUD Date: Tue, 19 Oct 2021 14:11:26 +0200 Subject: [PATCH] Change Tools::jsonEncode to json_encode --- graphnvd3.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } }