diff --git a/routes/web.php b/routes/web.php index aa4ba77d..6833758b 100644 --- a/routes/web.php +++ b/routes/web.php @@ -6205,8 +6205,10 @@ Route::get('/qtanegativa', function () { echo '[' . $ind . ']' . $sep . $mydatestr . $sep . $article->Id . $sep . $article->IdArticolo . $sep . $article->Titolo . $sep . $article->DescrizioneStatoProdotto . $sep . $article->DescrizioneFormato . '[Quantita = ' . $article->QtaDisponibile . ']
'; $prodotto = Product::find($product_id); - $label = $prodotto['_wpro_label_variable']; - echo " label=" . $label; + if ($prodotto) { + $label = $prodotto['_wpro_label_variable']; + echo " label=" . $label; + } $ind++; }