improved utf8 array conversion
This commit is contained in:
parent
73148364e0
commit
1a021c0189
@ -181,7 +181,11 @@ abstract class Formatter {
|
|||||||
if (is_array($text)) {
|
if (is_array($text)) {
|
||||||
$newArray = array();
|
$newArray = array();
|
||||||
foreach ($text as $key => $value) {
|
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;
|
return $newArray;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user