mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/8610] Throw an error when the dest topic isn't set
PHPBB3-8610
This commit is contained in:
parent
d20d86bf10
commit
c517cd6778
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue