aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2011-02-23 22:52:41 -0500
committerOleg Pudeyev <oleg@bsdpower.com>2011-03-06 20:16:17 -0500
commitfc5be6928fc2af13333569e766a289e5e3334233 (patch)
tree7c2aa89073216b021d4da96dc5a40f7024b51c1b
parentd69a7c620a08d1866a24033ef43646a4bbfc9925 (diff)
downloadforums-fc5be6928fc2af13333569e766a289e5e3334233.tar
forums-fc5be6928fc2af13333569e766a289e5e3334233.tar.gz
forums-fc5be6928fc2af13333569e766a289e5e3334233.tar.bz2
forums-fc5be6928fc2af13333569e766a289e5e3334233.tar.xz
forums-fc5be6928fc2af13333569e766a289e5e3334233.zip
[ticket/10057] No negative array indexing.
PHP manual does not say that negative array indices are allowed, so it's best to assume they are not guaranteed to work the way one would expect. PHPBB3-10057
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 471d3476a0..e0623c0869 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -3931,7 +3931,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
function phpbb_error_collection_handler($errno, $msg_text, $errfile, $errline)
{
global $phpbb_collected_errors;
- $phpbb_collected_errors[-1][] = array($errno, $msg_text, $errfile, $errline);
+ $phpbb_collected_errors[count($phpbb_collected_errors)-1][] = array($errno, $msg_text, $errfile, $errline);
}
function phpbb_start_error_collection()