[ticket/13142] Default $total to -1 before the event for more flexibility

PHPBB3-13142
This commit is contained in:
brunoais 2015-02-27 22:51:32 +00:00
parent df9331084b
commit c37d5f9b7c

View file

@ -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.