From 69596125d7a9c086abdf4677d9cda12e91e51c61 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 21 Mar 2013 18:09:37 +0100 Subject: [PATCH] Fix E_STRICT error: we explicitely have to cast resources to (int) --- www/import.php | 8 ++++---- 1 file 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]--; } ?>