Merge branch 'feature-news-date-filter' of https://git.nhgooi.nl/NH_Gooi/nhgooi.nl into feature-news-date-filter

This commit is contained in:
Jorit Tijsen
2025-06-30 17:37:21 +02:00

View File

@@ -21,7 +21,7 @@ class Controller extends BaseController
{ {
$data = json_decode(Storage::disk('local')->get($file)); $data = json_decode(Storage::disk('local')->get($file));
foreach ($path as $subobject) { foreach ($path as $subobject) {
$data = $data->$subobject; $data = $data->$subobject ?? [];
} }
$items = []; $items = [];
foreach ($data as $item_data) { foreach ($data as $item_data) {