mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: API, remove extra utf8 encoding for json function (#6118)
This commit is contained in:
committed by
Tony Murray
parent
58442e0a75
commit
8f96b14975
@@ -1129,9 +1129,6 @@ if (!defined('JSON_UNESCAPED_UNICODE')) {
|
||||
|
||||
function _json_encode($data, $options = 448)
|
||||
{
|
||||
array_walk_recursive($data, function (&$val) {
|
||||
$val = utf8_encode($val);
|
||||
});
|
||||
if (version_compare(PHP_VERSION, '5.4', '>=')) {
|
||||
return json_encode($data, $options);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user