From 90ab4c049eebcaf405ad18d72d550668e0dacd47 Mon Sep 17 00:00:00 2001 From: hecht Date: Wed, 16 Nov 2011 21:37:48 +0000 Subject: [PATCH] fixes that were visible in the tests --- ag/clan/kampf_info.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ag/clan/kampf_info.php b/ag/clan/kampf_info.php index 34c751d..40c8b82 100644 --- a/ag/clan/kampf_info.php +++ b/ag/clan/kampf_info.php @@ -101,7 +101,8 @@ function displayShowChallenge($clan_challenge_id, $user) { } else { $other_clan = getClan($participating_clan_ids[1]); } - + $clan_challenge = getChallenge($clan_challenge_id); + $anzahl = $clan_challenge['anzahl_slots']; $user_clan_chars = getParticipatingCharIDs($clan_challenge_id, $user_clan['id']); $other_clan_chars = getParticipatingCharIDs($clan_challenge_id, $other_clan['id']); $user_chars = getCharsOfUser($user['id']); @@ -118,7 +119,7 @@ function displayShowChallenge($clan_challenge_id, $user) { '; echo 'Slot '.$i.''; if($other_clan_chars[$i] != null) { @@ -133,7 +134,7 @@ function displayShowChallenge($clan_challenge_id, $user) { '; echo 'Slot '.$i.''; if($user_clan_chars[$i] != null) { @@ -235,7 +236,9 @@ function displayClanFightMenu($user) { $user_clan = getClan($user['clan']); $clans_tmp = getClanFightCapableClanIds(); foreach ($clans_tmp as $clan_tmp_id) { - $clans[] = getClan($clan_tmp_id); + if($user['clan'] != $clan_tmp_id) { + $clans[] = getClan($clan_tmp_id); + } } $open_challenge_requests = getOpenChallengeRequests($user_clan['id']); $open_challenge_ids = getOpenChallengeIDs($user_clan['id']);