diff --git a/guilds.php b/guilds.php index 443aa0d..809a2b8 100644 --- a/guilds.php +++ b/guilds.php @@ -276,22 +276,23 @@ if (user_logged_in() === true) {
Name: | - Remove:'; - } - // Shuffle through visitor characters - for ($i = 0; $i < $char_count; $i++) { - $exist = false; - // Shuffle through invited character, see if they match your character. - if ($inv_data !== false) foreach ($inv_data as $inv) { - if ($charactersId[$i] == $inv['player_id']) { - $exist = true; - } - } - if ($exist) echo 'Join Guild: | Reject Invitation: | '; - } - ?> + Remove:'; + } + // Shuffle through visitor characters + $exist = false; + for ($i = 0; $i < $char_count; $i++) { + // Shuffle through invited character, see if they match your character. + if ($inv_data !== false) foreach ($inv_data as $inv) { + if ($charactersId[$i] == $inv['player_id']) { + $exist = true; + break; + } + } + } + if ($exist) echo 'Join Guild: | Reject Invitation: | '; + ?>