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

Warning users without post causes PHP warning

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Trivial
    • Resolution: Fixed
    • 3.3.9
    • 3.3.11
    • None
    • None

    Description

      Warning users triggers PHP warning:

      [phpBB Debug] PHP Warning: in file [ROOT]/includes/mcp/mcp_warn.php on line 607: Trying to access array offset on value of type bool

       

      Seems that add_warning function assumes that $post_id != 0. If you warn an user manually that condition isn't satisfied -> db query returns false -> $row is not an array.

      Attachments

        Activity

          People

            Crizzo Crizzo
            throwaway throwaway
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: