🆙 More fixes 🆙
This commit is contained in:
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');
|
||||
|
||||
Reference in new issue
Block a user