From 1a021c0189135dc61457af7d02738b7272d4ace5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Thu, 26 Jun 2014 11:18:00 +0200 Subject: [PATCH] improved utf8 array conversion --- application/core/Utils/Formatter.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/application/core/Utils/Formatter.php b/application/core/Utils/Formatter.php index f1f99d93..9d736c82 100644 --- a/application/core/Utils/Formatter.php +++ b/application/core/Utils/Formatter.php @@ -181,7 +181,11 @@ abstract class Formatter { if (is_array($text)) { $newArray = array(); foreach ($text as $key => $value) { - $newArray[$key] = self::utf8($value); + if (is_string($value)) { + $newArray[$key] = self::utf8($value); + } else { + $newArray[$key] = $value; + } } return $newArray; }