error 500 fix

This commit is contained in:
2026-10-31 15:34:53 +01:00
parent f7edd64c8a
commit a888fe3695
4 changed files with 37 additions and 10 deletions
+1 -1
View File
@@ -60,6 +60,6 @@ class Product extends Model
public function getFormattedPriceAttribute(): string
{
return '€ '.number_format($this->base_price, 2, ',', '.');
return '€ '.number_format((float) ($this->base_price ?? 0), 2, ',', '.');
}
}