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:
parent
fcaa859ee5
commit
c4c86a240d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user