From 1fec5e6967f4cc1278aead9959aa0c8f8ac36a56 Mon Sep 17 00:00:00 2001 From: marcosbc Date: Sun, 6 Apr 2014 23:16:23 +0200 Subject: [PATCH] [ticket/12270] Correcting to follow phpBB coding standards I forgot to put the brackets (so it follows the phpBB coding standards) and changed "count($topic_id_list) > 0" to "!empty($topic_id_list)", making the syntax more comprehensible. PHPBB3-12270 --- phpBB/includes/mcp/mcp_queue.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php index 31c41f5bb1..fd22a866bb 100644 --- a/phpBB/includes/mcp/mcp_queue.php +++ b/phpBB/includes/mcp/mcp_queue.php @@ -702,8 +702,10 @@ class mcp_queue } } - if(count($topic_id_list) > 0) + if (!empty($topic_id_list)) + { self::approve_topics($action, $topic_id_list, $id, $mode); + } } meta_refresh(3, $redirect);