From 3c4d4cf286772f708d80f7f6c5118b377fa6aa6f Mon Sep 17 00:00:00 2001 From: iouston <4319513+iouston@users.noreply.github.com> Date: Sat, 16 Nov 2024 11:09:14 +0100 Subject: [PATCH] Please phpstan... --- htdocs/comm/action/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/comm/action/card.php b/htdocs/comm/action/card.php index 6d4d4f5011096..8ef1b664a29f7 100644 --- a/htdocs/comm/action/card.php +++ b/htdocs/comm/action/card.php @@ -548,7 +548,7 @@ if ($idaction > 0) { if (!$object->error) { - if (count($listofresourceid)) { + if (is_array($listofresourceid) && count($listofresourceid)) { foreach ($listofresourceid as $resource_id => $val) { $resource_type = 'dolresource'; $busy = 1;//GETPOSTINT('busy');