diff --git a/theme/components/raid-signup.php b/theme/components/raid-signup.php index 7986baf..c11826c 100644 --- a/theme/components/raid-signup.php +++ b/theme/components/raid-signup.php @@ -7,12 +7,14 @@ use WoWPress\Models\Signup; $id = "raidSignup_" . uniqid(); global $user; +$chars = []; if(!empty($this->character->user->ID)){ - $chars = $this->character->user->characters; -}else{ - $chars = [$this->character]; + $chars = $this->character->user->characters()->where('raidchar',true)->get(); } +if(empty($chars) || empty($chars->first())){ + $chars = [$this->character]; +} ?>