From c37d5f9b7c3c03a8f1dd4c130054caa922f8b34b Mon Sep 17 00:00:00 2001 From: brunoais Date: Fri, 27 Feb 2015 22:51:32 +0000 Subject: [PATCH] [ticket/13142] Default $total to -1 before the event for more flexibility PHPBB3-13142 --- phpBB/includes/functions_mcp.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/phpBB/includes/functions_mcp.php b/phpBB/includes/functions_mcp.php index 13c1299928..2780faa7fa 100644 --- a/phpBB/includes/functions_mcp.php +++ b/phpBB/includes/functions_mcp.php @@ -553,6 +553,9 @@ function phpbb_mcp_sorting($mode, &$sort_days, &$sort_key, &$sort_dir, &$sort_by break; } + // Default total to -1 to allow editing by the event + $total = -1; + /** * This event allows you to control the SQL query used to get the total number * of reports the user can access.