Add null check
This commit is contained in:
parent
cdabdb4558
commit
4acdd8df12
@ -19,7 +19,11 @@
|
|||||||
@php
|
@php
|
||||||
|
|
||||||
$instanceSettings = InstanceSettings::first();
|
$instanceSettings = InstanceSettings::first();
|
||||||
$name = strlen($instanceSettings->instance_name) > 0 ? "[{$instanceSettings->instance_name}] " : '';
|
$name = null;
|
||||||
|
|
||||||
|
if($instanceSettings) {
|
||||||
|
$name = strlen($instanceSettings->instance_name) > 0 ? "[{$instanceSettings->instance_name}] " : '';
|
||||||
|
}
|
||||||
@endphp
|
@endphp
|
||||||
<title>{{ $name }}{{ $title ?? 'Coolify' }}</title>
|
<title>{{ $name }}{{ $title ?? 'Coolify' }}</title>
|
||||||
@env('local')
|
@env('local')
|
||||||
|
Loading…
Reference in New Issue
Block a user