[ticket/11638] Removed the unneeded reset.

sub-task of ticket PHPBB3-11635:
find and fix all bypasses of generate_text_for_*

PHPBB3-11638
This commit is contained in:
Bruno Ais 2013-07-24 12:45:23 +01:00
parent 6c68348a71
commit 4cdccbd42b

View file

@ -830,7 +830,7 @@ if (!empty($topic_data['poll_start']))
$parse_bbcode_flags = OPTION_FLAG_SMILIES; $parse_bbcode_flags = OPTION_FLAG_SMILIES;
if(empty($poll_info[0]['bbcode_bitfield'])) if (empty($poll_info[0]['bbcode_bitfield']))
{ {
$parse_bbcode_flags |= OPTION_FLAG_BBCODE; $parse_bbcode_flags |= OPTION_FLAG_BBCODE;
} }
@ -842,8 +842,6 @@ if (!empty($topic_data['poll_start']))
$topic_data['poll_title'] = generate_text_for_display($topic_data['poll_title'], $poll_info[0]['bbcode_uid'], $poll_info[0]['bbcode_bitfield'], $parse_bbcode_flags, true); $topic_data['poll_title'] = generate_text_for_display($topic_data['poll_title'], $poll_info[0]['bbcode_uid'], $poll_info[0]['bbcode_bitfield'], $parse_bbcode_flags, true);
unset($parse_bbcode_flags);
foreach ($poll_info as $poll_option) foreach ($poll_info as $poll_option)
{ {
$option_pct = ($poll_total > 0) ? $poll_option['poll_option_total'] / $poll_total : 0; $option_pct = ($poll_total > 0) ? $poll_option['poll_option_total'] / $poll_total : 0;