From 88d417bf7a484aaa03a5892a77238d56b08b7535 Mon Sep 17 00:00:00 2001 From: paoloar77 Date: Wed, 14 Aug 2024 15:38:04 +0200 Subject: [PATCH] aa --- app/CustomFuncPao.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/CustomFuncPao.php b/app/CustomFuncPao.php index 9f8de05f..418a264e 100644 --- a/app/CustomFuncPao.php +++ b/app/CustomFuncPao.php @@ -478,7 +478,7 @@ function showTest() { $codarticolo = "16670"; - $mystr = '*** TEST: codarticolo: ' . $codarticolo; + $mystr = '*** TEST: codarticolo: ' . $codarticolo . PHP_EOL; if ($codarticolo) { try { $product = Product::where('sku', $codarticolo)->first(); @@ -486,7 +486,8 @@ function showTest() $mystr .= "Errore: " . $e->getMessage(); } - $mystr .= getarraystr($product); + if (isset($product) && isset($product['id'])) + $mystr += $product['id'] . ' '; } return $mystr;