aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()