You've already forked Epicnabbo-Catalogus-Updated-Daily
🆙 More fixes 🆙
This commit is contained in:
@@ -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