1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Null coalesce for designs

This commit is contained in:
David Bomba 2023-11-12 22:05:33 +11:00
parent fcaa859ee5
commit c4c86a240d

View File

@ -273,7 +273,7 @@ class PdfConfiguration
{
$design_id = $this->entity->design_id ? : $this->decodePrimaryKey($this->settings_object->getSetting($this->entity_design_id));
$this->design = Design::withTrashed()->find($design_id ?: 2);
$this->design = Design::withTrashed()->find($design_id ?? 2);
return $this;
}