From d878174caed0dd952c2cb4ae54d55b6d4193a9a1 Mon Sep 17 00:00:00 2001 From: paoloar77 Date: Mon, 20 May 2024 23:52:36 +0200 Subject: [PATCH] aa --- app/CustomFuncPao.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/CustomFuncPao.php b/app/CustomFuncPao.php index 98f37f25..9e61f92d 100644 --- a/app/CustomFuncPao.php +++ b/app/CustomFuncPao.php @@ -260,7 +260,7 @@ function loadArticleByIdArticle($sku, $checkprevendita = true) ->where('T_WEB_Articoli.IdArticolo', $sku) ->get(); - if ($checkprevendita) { + if ($articles && $checkprevendita) { $inprevendita = $articles[0]->DescrizioneStatoProdotto === 'In prevendita'; if ($inprevendita) { // comment this line if you want to show articles in prevendita