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

generate_text_for_display() treats "0" as an empty string

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.12-RC2
    • Fix Version/s: 3.0.13-RC1
    • Component/s: Posting
    • Labels:
      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

              Assignee:
              nickvergessen Joas Schilling [X] (Inactive)
              Reporter:
              JoshyPHP JoshyPHP
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: