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;