From bab6c9bc68c6da935c58aaf1df601e27d5757f54 Mon Sep 17 00:00:00 2001 From: hansemschnokeloch Date: Wed, 4 Sep 2024 21:18:11 +0200 Subject: [PATCH] Fix countable error (#30839) --- htdocs/expedition/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/expedition/card.php b/htdocs/expedition/card.php index d0b8b07db05..e89e7318cd1 100644 --- a/htdocs/expedition/card.php +++ b/htdocs/expedition/card.php @@ -1108,7 +1108,7 @@ if ($action == 'create') { // Document model include_once DOL_DOCUMENT_ROOT.'/core/modules/expedition/modules_expedition.php'; $list = ModelePdfExpedition::liste_modeles($db); - if (count($list) > 1) { + if (is_countable($list) && count($list) > 1) { print "".$langs->trans("DefaultModel").""; print ''; print img_picto('', 'pdf', 'class="pictofixedwidth"');