]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
Fix E_STRICT error: we explicitely have to cast resources to (int)
authorChristian Weiske <cweiske@cweiske.de>
Thu, 21 Mar 2013 17:09:37 +0000 (18:09 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Thu, 21 Mar 2013 17:09:37 +0000 (18:09 +0100)
www/import.php

index 1293a2fb51364c65ad8e2822dcbbf5838941a1e6..f5fca0d4d7d1ecfc830ccd4ae5688fc416c61ec2 100644 (file)
@@ -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]--;
 }
 ?>