1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

Merge pull request #2675 from arunshekher/oldpolls_comments_container_html_fix

oldpolls.php comments container html fix
This commit is contained in:
Cameron
2017-06-14 12:39:53 -07:00
committed by GitHub

View File

@@ -82,23 +82,7 @@ if(e_QUERY)
}
*/
$query = "SELECT c.*, u.* FROM #comments AS c
LEFT JOIN #user AS u ON c.comment_author_id = u.user_id
WHERE comment_item_id=".intval($row['poll_id'])." AND comment_type='4' ORDER BY comment_datestamp";
if ($comment_total = $sql->gen($query))
{
$text .= "<hr /><div>";
while ($row2 = $sql->fetch())
{
$text .= e107::getComment()->render_comment($row2, 'poll', 'comment');
}
$text .= "</div>";
}
// $text .= "</table>";
$text .= e107::getComment()->compose_comment('poll', 'comment', intval( $row['poll_id'] ), null, '', false, 'html');
$ns->tablerender(LAN_PLUGIN_POLL_NAME." #".$row['poll_id'], $text);
echo "<hr />";
}