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

generate_text_for_display() treats "0" as an empty string

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.0.13-RC1
    • 3.0.12-RC2
    • Posting
    • None

      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 "".

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

              Created:
              Updated:
              Resolved: