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

Warning users without post causes PHP warning

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 3.3.11
    • 3.3.9
    • None
    • None

      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.

            Crizzo Crizzo
            throwaway throwaway [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: