diff --git a/templates/ordini/body.php b/templates/ordini/body.php index 1a6127b03..79f771d71 100755 --- a/templates/ordini/body.php +++ b/templates/ordini/body.php @@ -24,7 +24,7 @@ $righe = $documento->getRighe(); $has_image = $righe->search(function ($item) { return !empty($item->articolo->immagine); -}); +}) !== false; if ($has_image) { $columns = 7; @@ -81,7 +81,7 @@ foreach ($righe as $riga) { '; if ($has_image) { - if ($riga->isArticolo()) { + if ($riga->isArticolo() && !empty($riga->articolo->image)) { echo '