From 933e8a1403a60f699545cac36403648be3db2743 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 15 Nov 2021 14:58:54 +0100 Subject: [PATCH] fix PHP 8.0 TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given --- admin/inc/class.admin_acl.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/inc/class.admin_acl.inc.php b/admin/inc/class.admin_acl.inc.php index 5d40e2515d..ca96314533 100644 --- a/admin/inc/class.admin_acl.inc.php +++ b/admin/inc/class.admin_acl.inc.php @@ -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)); }