fix PHP 8.0 TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given

This commit is contained in:
Ralf Becker 2021-11-15 14:58:54 +01:00
parent f7247a6ea9
commit 933e8a1403

View File

@ -392,7 +392,7 @@ class admin_acl
}
if (!(int)$rights)
{
if (count($ids) > 1)
if (count((array)$ids) > 1)
{
$msg = lang('%1 ACL entries deleted.', count($ids));
}