diff --git a/app/Http/Controllers/ArticleController.php b/app/Http/Controllers/ArticleController.php index f6745afc..90f34cef 100755 --- a/app/Http/Controllers/ArticleController.php +++ b/app/Http/Controllers/ArticleController.php @@ -175,6 +175,10 @@ class ArticleController extends Controller $articoliVenduti = $this->articoliByDataStart($data_start); + if (isset($articoliVenduti['error'])) { + return view('error', ['message' => $articoliVenduti['error']]); + } + return view('export_articles_test', ['articoli' => $articoliVenduti]); } catch (\Exception $e) {