1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-19 07:08:09 +01:00

[feature/events] Adding core.mcp_check_ids ledge

PHPBB3-9550
This commit is contained in:
Michael Cullum 2012-03-16 18:58:46 +00:00 committed by Joas Schilling
parent 1aa7bc81f6
commit e17d0daf51

View File

@ -823,7 +823,7 @@ function mcp_sorting($mode, &$sort_days, &$sort_key, &$sort_dir, &$sort_by_sql,
*/
function check_ids(&$ids, $table, $sql_id, $acl_list = false, $single_forum = false)
{
global $db, $auth;
global $db, $auth, $phpbb_dispatcher;
if (!is_array($ids) || empty($ids))
{
@ -889,5 +889,7 @@ function check_ids(&$ids, $table, $sql_id, $acl_list = false, $single_forum = fa
// If forum id is false and ids populated we may have only global announcements selected (returning 0 because of (int) $forum_id)
$phpbb_dispatcher->dispatch('core.mcp_check_ids');
return ($single_forum === false) ? true : (int) $forum_id;
}