[ticket/8610] Throw an error when the dest topic isn't set

PHPBB3-8610
This commit is contained in:
Tristan Darricau 2014-05-27 01:38:43 +02:00
parent d20d86bf10
commit c517cd6778

View file

@ -378,7 +378,7 @@ function merge_topics($forum_id, $topic_ids, $to_topic_id)
$topic_data = get_topic_data($sync_topics, 'm_merge');
if (!sizeof($topic_data) && empty($topic_data[$to_topic_id]))
if (!sizeof($topic_data) || empty($topic_data[$to_topic_id]))
{
$template->assign_var('MESSAGE', $user->lang['NO_FINAL_TOPIC_SELECTED']);
return;