mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 23:37:39 +02:00
[ticket/8610] Throw an error when the dest topic isn't set
PHPBB3-8610
This commit is contained in:
@@ -378,7 +378,7 @@ function merge_topics($forum_id, $topic_ids, $to_topic_id)
|
|||||||
|
|
||||||
$topic_data = get_topic_data($sync_topics, 'm_merge');
|
$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']);
|
$template->assign_var('MESSAGE', $user->lang['NO_FINAL_TOPIC_SELECTED']);
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user