mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
[ticket/12025] Don't show any error on preview if the message is empty
PHPBB3-12025
This commit is contained in:
parent
0ef920eb42
commit
8facf2b8d9
1 changed files with 4 additions and 1 deletions
|
@ -879,7 +879,10 @@ if ($submit || $preview || $refresh)
|
||||||
$message_parser->warn_msg = array();
|
$message_parser->warn_msg = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
$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']);
|
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
|
// On a refresh we do not care about message parsing errors
|
||||||
if (sizeof($message_parser->warn_msg) && $refresh && !$preview)
|
if (sizeof($message_parser->warn_msg) && $refresh && !$preview)
|
||||||
|
|
Loading…
Add table
Reference in a new issue