diff options
-rw-r--r-- | www/import.php | 8 |
1 files changed, 4 insertions, 4 deletions
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]--; } ?> |