Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-11762

generate_text_for_display() treats "0" as an empty string

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 3.0.12-RC2
    • 3.0.13-RC1
    • Posting
    • None

    Description

      generate_text_for_display() and generate_text_for_storage() use a false-ish operator. They treat "0" as an empty string. In 3.0 the impact is virtually non-existent because generate_text_for_display() is not widely used, but in 3.1 it means that you can't have "0" as a poll option because it will be displayed as "".

      Attachments

        Issue Links

          Activity

            People

              nickvergessen Joas Schilling
              JoshyPHP JoshyPHP
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: