🆙 More fixes 🆙

This commit is contained in:
Remco committed 2026-01-19 20:50:18 +01:00
1 parent b983f325f4
commit 93d3067306
5 files changed
+21 -8

No files matched your search

@@ -19,13 +19,13 @@ class WebsiteShopArticle extends Model
public function furniItems(): Collection
{
if (! $this->furniture) {
return collect();
return new Collection();
}
$furniture = json_decode($this->furniture, true);
if (! is_array($furniture)) {
return collect();
return new Collection();
}
$furnitureIds = array_column($furniture, 'item_id');