phpBB

Code Changes

File: phpbb/textreparser/plugins/poll_title.php

  Unmodified   Added   Modified   Removed
Line 34Line 34
		$sql = 'SELECT t.topic_id AS id, t.poll_title AS text, p.enable_bbcode, p.enable_smilies, p.enable_magic_url, p.bbcode_uid
FROM ' . TOPICS_TABLE . ' t, ' . POSTS_TABLE . ' p
WHERE t.topic_id BETWEEN ' . $min_id . ' AND ' . $max_id .'

		$sql = 'SELECT t.topic_id AS id, t.poll_title AS text, p.enable_bbcode, p.enable_smilies, p.enable_magic_url, p.bbcode_uid
FROM ' . TOPICS_TABLE . ' t, ' . POSTS_TABLE . ' p
WHERE t.topic_id BETWEEN ' . $min_id . ' AND ' . $max_id .'

				AND t.poll_max_options > 0

				AND t.poll_start > 0

				AND p.post_id = t.topic_first_post_id';

return $sql;

				AND p.post_id = t.topic_first_post_id';

return $sql;