diff options
Diffstat (limited to 'core/DataTable/Renderer/Json.php')
-rw-r--r-- | core/DataTable/Renderer/Json.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/DataTable/Renderer/Json.php b/core/DataTable/Renderer/Json.php index f5f6fc12bb..89dd73ab37 100644 --- a/core/DataTable/Renderer/Json.php +++ b/core/DataTable/Renderer/Json.php @@ -79,7 +79,11 @@ class Json extends Renderer } // decode all entities - $callback = create_function('&$value,$key', 'if(is_string($value)){$value = html_entity_decode($value, ENT_QUOTES, "UTF-8");}'); + $callback = function(&$value,$key) { + if(is_string($value)) { + $value = html_entity_decode($value, ENT_QUOTES, "UTF-8"); + }; + }; array_walk_recursive($array, $callback); $str = Common::json_encode($array); |