From 10fa9878324c5f1955ff3b6ad873751622f4c7db Mon Sep 17 00:00:00 2001 From: rGaillard Date: Fri, 29 Nov 2013 15:11:49 +0100 Subject: [PATCH] // small fix --- classes/Tools.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/classes/Tools.php b/classes/Tools.php index ec27693a4..4c988ea02 100644 --- a/classes/Tools.php +++ b/classes/Tools.php @@ -676,10 +676,8 @@ class ToolsCore public static function htmlentitiesDecodeUTF8($string) { if (is_array($string)) - { - $string = array_map(array('Tools', 'htmlentitiesDecodeUTF8'), $string); - return (string)array_shift($string); - } + return array_map(array('Tools', 'htmlentitiesDecodeUTF8'), $string); + return html_entity_decode((string)$string, ENT_QUOTES, 'utf-8'); }