summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2012-07-17 14:52:15 +0000
committerUrban Müller2012-07-17 14:52:15 +0000
commit09b101124cf8427cbaf6c0fb76636f530a2397d5 (patch)
treeff300e28615415c30da1856a4c96895bf150426e
parentfad7667930db46129701982d9b0e34263a64c9fa (diff)
downloaditools-09b101124cf8427cbaf6c0fb76636f530a2397d5.tar.gz
itools-09b101124cf8427cbaf6c0fb76636f530a2397d5.tar.bz2
itools-09b101124cf8427cbaf6c0fb76636f530a2397d5.zip
it::any2utf8: leave true/false/objects untouched
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 250c133..5b34188 100644
--- a/it.class
+++ b/it.class
@@ -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)));