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

Request class doesn't return correct array default value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Major Major
    • 3.1.0-a1
    • 3.1.0-dev
    • Other
    • None

      When using the request class the second parameter defines the "default" value, if you pass a string or an integer as second parameter and the parameter isn't set in the $_REQUEST array the class will neatly return the value you've passed as default. However when passing an array the class will return an empty array rather than the one you've passed as default. This behavior is unexpected and undocumented in the docblock.

            bantu Andreas Fischer [X] (Inactive)
            Erik Frèrejean Erik Frèrejean
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: