From 36c70ea16d4125721b439913d847b198b52fb8b5 Mon Sep 17 00:00:00 2001 From: Dasc3er Date: Fri, 27 Nov 2020 15:24:55 +0100 Subject: [PATCH] Fix #911 --- templates/ordini/body.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 '