diff options
author | Urban Müller | 2015-08-10 13:59:59 +0200 |
---|---|---|
committer | Urban Müller | 2015-08-10 13:59:59 +0200 |
commit | 534899acf620b83936a8e445c806cc481d789050 (patch) | |
tree | 89af2ecb4e41303398fc5679c692c9579cc61f58 /it.class | |
parent | 7fd4e76f58d377cf978f97200145167eeb2aab9e (diff) | |
download | itools-534899acf620b83936a8e445c806cc481d789050.tar.gz itools-534899acf620b83936a8e445c806cc481d789050.tar.bz2 itools-534899acf620b83936a8e445c806cc481d789050.zip |
correctly handle non-utf8 in keys
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -429,8 +429,8 @@ static function any2utf8($value, $errprefix = "") if (is_array($value)) { foreach ($value as $idx => $v) - if (is_string($v) || is_array($v)) - $value[$idx] = self::any2utf8($v, $errprefix); + $newarr[self::any2utf8($idx)] = is_string($v) || is_array($v) ? self::any2utf8($v, $errprefix) : $v; + $value = $newarr; } else if (is_string($value)) { |