diff options
author | Christian Weiske <cweiske@cweiske.de> | 2013-03-21 18:09:37 +0100 |
---|---|---|
committer | Christian Weiske <cweiske@cweiske.de> | 2013-03-21 18:09:37 +0100 |
commit | 69596125d7a9c086abdf4677d9cda12e91e51c61 (patch) | |
tree | d0839bc99943d3b1ce637c8f463451fdfa3f4f71 /www | |
parent | dfaf1d026accae515b9d7cb8593a6f157884fe07 (diff) | |
download | semanticscuttle-69596125d7a9c086abdf4677d9cda12e91e51c61.tar.gz semanticscuttle-69596125d7a9c086abdf4677d9cda12e91e51c61.tar.bz2 |
Fix E_STRICT error: we explicitely have to cast resources to (int)
Diffstat (limited to 'www')
-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]--; } ?> |