summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
Diffstat (limited to 'it.class')
-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)));