From 001b12e762d897b16990fd9baf8ff4a5072b342a Mon Sep 17 00:00:00 2001
From: Emilianenko <celohere@gmail.com>
Date: Thu, 20 Oct 2022 12:31:58 -0300
Subject: [PATCH] Update guilds.php (#525)

https://otland.net/threads/znote-guilds-php-small-issue.282623/
---
 guilds.php | 33 +++++++++++++++++----------------
 1 file changed, 17 insertions(+), 16 deletions(-)

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) {
 <table>
 	<tr class="yellow">
 		<td>Name:</td>
-		<?php
-		if ($highest_access == 2 || $highest_access == 3) {
-			echo '<td>Remove:</td>';
-		}
-		// 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 '<td>Join Guild:</td><td>Reject Invitation:</td>';
-		}
-		?>
+        <?php
+        if ($highest_access == 2 || $highest_access == 3) {
+            echo '<td>Remove:</td>';
+        }
+        // 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 '<td>Join Guild:</td><td>Reject Invitation:</td>';
+        ?>
 	</tr>
 		<?php
 		$bool = false;