Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-15512

Avoid reparsing non-existent polls

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 4.0.0-a1, 3.2.3-RC1
    • 3.2.2
    • None
    • None

      The current poll_title reparser uses poll_max_options > 0 to determine whether a topic has a poll. However, this value does not reliably determine whether a poll exists as new topics have poll_max_options = 1 and only topics whose poll has been deleted have poll_max_options = 0.

      It should use poll_start > 0 instead.

      The issue is marked as trivial as it makes no functional difference whether empty poll titles are reparsed or not.

            Marc Marc
            JoshyPHP JoshyPHP
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: