fix for the message that there are open clanfights!

main
hecht 13 years ago
parent 849f15e15f
commit 1997aa1a93

@ -217,6 +217,24 @@ $agb = $_REQUEST['agb'];
<tr> <tr>
<?php <?php
$ids = count(getOpenChallengeIDs($user_ida['clan'])); $ids = count(getOpenChallengeIDs($user_ida['clan']));
if($ids > 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) { if($nnn_nn!=0) {
echo '<td colspan="3" align="center" id="pn">'; echo '<td colspan="3" align="center" id="pn">';

Loading…
Cancel
Save