From 788a25a74c973211d2288a17cf6fb368786ee4bb Mon Sep 17 00:00:00 2001 From: paoloar77 Date: Fri, 17 May 2024 12:24:14 +0200 Subject: [PATCH] test --- app/Console/Commands/TestPao.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/TestPao.php b/app/Console/Commands/TestPao.php index 3f8f4ea5..0cefa4f8 100644 --- a/app/Console/Commands/TestPao.php +++ b/app/Console/Commands/TestPao.php @@ -101,7 +101,8 @@ class TestPao extends Command try { $ind++; echo "\nArticolo " . $ind; - if (is_array($article)) { + if (is_object($article)) { + $strarticolo = json_encode($article, JSON_PRETTY_PRINT); if ($strarticolo !== false) { echo $strarticolo;