aa
This commit is contained in:
@@ -32,7 +32,7 @@ class ArticleController extends Controller
|
|||||||
->get();
|
->get();
|
||||||
|
|
||||||
if ($articoli->isEmpty()) {
|
if ($articoli->isEmpty()) {
|
||||||
return response()->json(['message' => 'Nessun articolo trovato.'], 404);
|
return ['error' => 'Nessun articolo'];
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
@@ -176,7 +176,7 @@ class ArticleController extends Controller
|
|||||||
|
|
||||||
$articoliVenduti = $this->articoliByDataStart($data_start);
|
$articoliVenduti = $this->articoliByDataStart($data_start);
|
||||||
|
|
||||||
if (isset($articoliVenduti['error'])) {
|
if ($articoliVenduti && isset($articoliVenduti['error'])) {
|
||||||
return view('error', ['message' => $articoliVenduti['error']]);
|
return view('error', ['message' => $articoliVenduti['error']]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user