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

PHP warning in MCP banning tab on PHP 7.2+

    XMLWordPrintable

    Details

      Description

       

      [phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_mcp.php on line 204: count(): Parameter must be an array or an object that implements Countable

       

       caused by passing a non-array (single integer) post_id to the function phpbb_get_post_data() in https://github.com/phpbb/phpbb/blob/3.2.x/phpBB/includes/mcp/mcp_ban.php#L272

       

        Attachments

          Activity

            People

            Assignee:
            Marc Marc
            Reporter:
            rxu rxu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: