diff --git a/www/import.php b/www/import.php index 1293a2f..f5fca0d 100644 --- a/www/import.php +++ b/www/import.php @@ -120,14 +120,14 @@ function startElement($parser, $name, $attrs) { } } } - if (!isset($depth[$parser])) { - $depth[$parser] = 0; + if (!isset($depth[(int)$parser])) { + $depth[(int)$parser] = 0; } - $depth[$parser]++; + $depth[(int)$parser]++; } function endElement($parser, $name) { global $depth; - $depth[$parser]--; + $depth[(int)$parser]--; } ?>