aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2018-01-19 12:20:54 +0100
committerMarc Alexander <admin@m-a-styles.de>2018-01-19 12:20:54 +0100
commitadc75b700f0cf3d6d47689c00932fd1f41bc58e9 (patch)
tree4478debb455a5026c5974df7e91148194c345679 /phpBB/phpbb
parentfb5247a726d60e130d093a9a3865c58fb16e118c (diff)
parent5878d66ebfe6a25c6d5e495c4fd07e7d3ad634ab (diff)
downloadforums-adc75b700f0cf3d6d47689c00932fd1f41bc58e9.tar
forums-adc75b700f0cf3d6d47689c00932fd1f41bc58e9.tar.gz
forums-adc75b700f0cf3d6d47689c00932fd1f41bc58e9.tar.bz2
forums-adc75b700f0cf3d6d47689c00932fd1f41bc58e9.tar.xz
forums-adc75b700f0cf3d6d47689c00932fd1f41bc58e9.zip
Merge pull request #5083 from JoshyPHP/ticket/15512
[ticket/15512] Avoid reparsing non-existent polls
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/textreparser/plugins/poll_title.php2
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;