diff options
author | JoshyPHP <s9e.dev@gmail.com> | 2018-01-12 16:28:37 +0100 |
---|---|---|
committer | JoshyPHP <s9e.dev@gmail.com> | 2018-01-12 16:28:37 +0100 |
commit | 5878d66ebfe6a25c6d5e495c4fd07e7d3ad634ab (patch) | |
tree | a8587298c903342c26d4913e4220aa08c2a64a3a /phpBB/phpbb/textreparser/plugins | |
parent | 7f6ececf95da25ce37e6f1359755d62820a3b2ce (diff) | |
download | forums-5878d66ebfe6a25c6d5e495c4fd07e7d3ad634ab.tar forums-5878d66ebfe6a25c6d5e495c4fd07e7d3ad634ab.tar.gz forums-5878d66ebfe6a25c6d5e495c4fd07e7d3ad634ab.tar.bz2 forums-5878d66ebfe6a25c6d5e495c4fd07e7d3ad634ab.tar.xz forums-5878d66ebfe6a25c6d5e495c4fd07e7d3ad634ab.zip |
[ticket/15512] Avoid reparsing non-existent polls
PHPBB3-15512
Diffstat (limited to 'phpBB/phpbb/textreparser/plugins')
-rw-r--r-- | phpBB/phpbb/textreparser/plugins/poll_title.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/textreparser/plugins/poll_title.php b/phpBB/phpbb/textreparser/plugins/poll_title.php index 76d30655c9..5ca8bb063b 100644 --- a/phpBB/phpbb/textreparser/plugins/poll_title.php +++ b/phpBB/phpbb/textreparser/plugins/poll_title.php @@ -34,7 +34,7 @@ class poll_title extends \phpbb\textreparser\row_based_plugin $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; |