From 7540ddf8f44db65ad81a295cf2970771fec54d2a Mon Sep 17 00:00:00 2001 From: Deon George Date: Sun, 5 May 2024 22:12:24 +1000 Subject: [PATCH] $o is not always defined --- resources/views/layouts/partials/topmenu.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/layouts/partials/topmenu.blade.php b/resources/views/layouts/partials/topmenu.blade.php index ec7bf47..5abbc1f 100644 --- a/resources/views/layouts/partials/topmenu.blade.php +++ b/resources/views/layouts/partials/topmenu.blade.php @@ -15,7 +15,7 @@ - @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)
  • Join
  • @else
  • Status