$o is not always defined
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 35s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m41s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s

This commit is contained in:
Deon George 2024-05-05 22:12:24 +10:00
parent b17fe1d2ee
commit 7540ddf8f4

View File

@ -15,7 +15,7 @@
</ul>
</div>
</li>
@if(preg_match('#^domain/#',request()->path()) && $o->can_accept_app)
@if(preg_match('#^domain/#',request()->path()) && isset($o) && ($o instanceof \App\Models\Domain) && $o->can_accept_app)
<li><a href="{{ url('join') }}" id="join_top" class="@if(preg_match('#^join#',request()->path()))thispage @endif"><span>Join</span></a></li>
@else
<li><a href="{{ url('status') }}" class="@if(preg_match('#^status#',request()->path()))thispage disabled @endif"><span>Status</span></a></li>