[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
This commit is contained in:
marcosbc 2014-04-06 23:16:23 +02:00
parent f9edc85f82
commit 1fec5e6967

View file

@ -702,9 +702,11 @@ class mcp_queue
} }
} }
if(count($topic_id_list) > 0) if (!empty($topic_id_list))
{
self::approve_topics($action, $topic_id_list, $id, $mode); self::approve_topics($action, $topic_id_list, $id, $mode);
} }
}
meta_refresh(3, $redirect); meta_refresh(3, $redirect);
$message = $user->lang[$success_msg]; $message = $user->lang[$success_msg];