diff options
author | Urban Müller | 2012-07-17 14:52:15 +0000 |
---|---|---|
committer | Urban Müller | 2012-07-17 14:52:15 +0000 |
commit | 09b101124cf8427cbaf6c0fb76636f530a2397d5 (patch) | |
tree | ff300e28615415c30da1856a4c96895bf150426e /it.class | |
parent | fad7667930db46129701982d9b0e34263a64c9fa (diff) | |
download | itools-09b101124cf8427cbaf6c0fb76636f530a2397d5.tar.gz itools-09b101124cf8427cbaf6c0fb76636f530a2397d5.tar.bz2 itools-09b101124cf8427cbaf6c0fb76636f530a2397d5.zip |
it::any2utf8: leave true/false/objects untouched
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -422,7 +422,7 @@ function any2utf8($value, $errmsg = "") if (is_string($v) || is_array($v)) $value[$idx] = self::any2utf8($v, $errmsg); } - else + else if (is_string($value)) { if (grapheme_strlen($value) === null) list($value, $error) = array(utf8_encode($value), utf8_encode("$errmsg: incorrect utf8-encoding. input=" . trim($value))); |