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 b84136cff8
commit e89aaf7bc9
1 changed files with 1 additions and 1 deletions

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));
}