aboutsummaryrefslogtreecommitdiff
path: root/www/import.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2013-03-21 18:09:37 +0100
committerChristian Weiske <cweiske@cweiske.de>2013-03-21 18:09:37 +0100
commit69596125d7a9c086abdf4677d9cda12e91e51c61 (patch)
treed0839bc99943d3b1ce637c8f463451fdfa3f4f71 /www/import.php
parentdfaf1d026accae515b9d7cb8593a6f157884fe07 (diff)
downloadsemanticscuttle-69596125d7a9c086abdf4677d9cda12e91e51c61.tar.gz
semanticscuttle-69596125d7a9c086abdf4677d9cda12e91e51c61.tar.bz2
Fix E_STRICT error: we explicitely have to cast resources to (int)
Diffstat (limited to 'www/import.php')
-rw-r--r--www/import.php8
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]--;
}
?>