From 1997aa1a93adcbe925f73ac06268fc45f6eac699 Mon Sep 17 00:00:00 2001 From: hecht Date: Wed, 16 Nov 2011 21:05:29 +0000 Subject: [PATCH] fix for the message that there are open clanfights! --- ag/index.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ag/index.php b/ag/index.php index 6b17074..3d0b78c 100644 --- a/ag/index.php +++ b/ag/index.php @@ -217,6 +217,24 @@ $agb = $_REQUEST['agb']; 0) { + $n_ids = array(); + foreach ($ids as $clan_challenge_id) { + $alreadyParticipating = false; + $char_ids[] = getParticipatingCharIDs($clan_challenge_id, $user_ida['clan']); + // okay, + foreach ($char_ids as $char_id) { + $char = getChar($char_id); + if($char['besitzer'] == $user_ida['id']) { + $alreadyParticipating = true; + break; + } + } + if(!$alreadyParticipating) { + $n_ids[] = $ids; + } + } + } if($nnn_nn!=0) { echo '';