Permalink
Browse files

Fix E_STRICT error: we explicitely have to cast resources to (int)

  • Loading branch information...
1 parent dfaf1d0 commit 69596125d7a9c086abdf4677d9cda12e91e51c61 @cweiske committed Mar 21, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 www/import.php
View
@@ -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]--;
}
?>

0 comments on commit 6959612

Please sign in to comment.