Merge pull request #5588 from rxu/ticket/16050

[ticket/16050] Fix PHP warning in MCP Banning tab on PHP 7.2+
This commit is contained in:
Marc Alexander 2019-05-14 17:18:35 +02:00
commit fdc04cb9ec
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -269,7 +269,7 @@ class mcp_ban
} }
else if ($post_id) else if ($post_id)
{ {
$post_info = phpbb_get_post_data($post_id, 'm_ban'); $post_info = phpbb_get_post_data(array($post_id), 'm_ban');
if (count($post_info) && !empty($post_info[$post_id])) if (count($post_info) && !empty($post_info[$post_id]))
{ {