Skip to content

Commit

Permalink
Merge pull request #15 from PierreRambaud/fix/deprecated
Browse files Browse the repository at this point in the history
Change Tools::jsonEncode to json_encode
  • Loading branch information
PierreRambaud authored Oct 19, 2021
2 parents 5bc8bbf + b6ac84e commit 0363990
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 0363990

Please sign in to comment.