1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-05 15:16:16 +02:00

[ticket/9162] Prevent notice on unset poll title

Regression from a81c857c96ee1a2a9be559ff3c9b71ca9514287e

PHPBB3-9162
This commit is contained in:
Igor Wiedler 2010-10-14 19:04:19 +02:00
parent c439cdc618
commit 07a8d5a3dd

View File

@ -1300,7 +1300,7 @@ $attachment_data = $message_parser->attachment_data;
$filename_data = $message_parser->filename_data;
$post_data['post_text'] = $message_parser->message;
if (sizeof($post_data['poll_options']) || $post_data['poll_title'])
if (sizeof($post_data['poll_options']) || !empty($post_data['poll_title']))
{
$message_parser->message = $post_data['poll_title'];
$message_parser->bbcode_uid = $post_data['bbcode_uid'];