From 06c8e19af3544e0eb3462c24096c4db3da685d6b Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Sat, 11 Aug 2012 11:49:48 +0200 Subject: [PATCH] [feature/php-events] Readd comment from d06adb06e907e31918130a6ef010b73d454f396c PHPBB3-9550 --- phpBB/mcp.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phpBB/mcp.php b/phpBB/mcp.php index 730af65e3d..d04a297cf9 100644 --- a/phpBB/mcp.php +++ b/phpBB/mcp.php @@ -887,5 +887,7 @@ function check_ids(&$ids, $table, $sql_id, $acl_list = false, $single_forum = fa return false; } + // If forum id is false and ids populated we may have only global announcements selected (returning 0 because of (int) $forum_id) + return ($single_forum === false) ? true : (int) $forum_id; }