summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
Diffstat (limited to 'it.class')
-rw-r--r--it.class6
1 files changed, 3 insertions, 3 deletions
diff --git a/it.class b/it.class
index 494fb1b..c5c1179 100644
--- a/it.class
+++ b/it.class
@@ -266,7 +266,7 @@ static function fatal($p)
it::error($p);
if ($_SERVER['REMOTE_ADDR'])
header("HTTP/1.0 500 Internal Server Error");
- exit(1);
+ exit(99);
}
@@ -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 = (array)$newarr;
}
else if (is_string($value))
{