[ticket/12025] Don't show any error on preview if the message is empty

PHPBB3-12025
This commit is contained in:
Nicofuma 2014-04-27 23:11:10 +02:00
parent 0ef920eb42
commit 8facf2b8d9

View file

@ -879,7 +879,10 @@ if ($submit || $preview || $refresh)
$message_parser->warn_msg = array();
}
if ($preview && empty($message_parser->message))
{
$message_parser->parse($post_data['enable_bbcode'], ($config['allow_post_links']) ? $post_data['enable_urls'] : false, $post_data['enable_smilies'], $img_status, $flash_status, $quote_status, $config['allow_post_links']);
}
// On a refresh we do not care about message parsing errors
if (sizeof($message_parser->warn_msg) && $refresh && !$preview)