mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix countable error (#30839)
This commit is contained in:
parent
e318a739be
commit
bab6c9bc68
|
|
@ -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 "<tr><td>".$langs->trans("DefaultModel")."</td>";
|
||||
print '<td colspan="3">';
|
||||
print img_picto('', 'pdf', 'class="pictofixedwidth"');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user