From f22c482746c08918873896412ba857539743cabb Mon Sep 17 00:00:00 2001 From: hecht Date: Wed, 16 Nov 2011 21:24:02 +0000 Subject: [PATCH] now it is finally done ... i had some issues with php array declaration (this is the result if ya working with java at work) --- ag/index.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ag/index.php b/ag/index.php index eeec343..2a42021 100644 --- a/ag/index.php +++ b/ag/index.php @@ -11,11 +11,13 @@ ignore_user_abort(true); include_once('path.inc.php'); // get the path ;) include_once(ROOT_PATH.'/include/config.inc.php'); include_once(ROOT_PATH.'/include/parse.inc.php'); +include_once(ROOT_PATH.'/include/char.inc.php'); include_once(ROOT_PATH.'/include/clan_fights.inc.php'); include_once(ROOT_PATH.'/include/config/ads.inc.php'); include_once(ROOT_PATH.'/include/schnell_start.inc.php'); include_once(ROOT_PATH.'/include/messagefunctions.inc.php'); + // Fuer den Transit von register_globals auf normal $name = $user_ida['nickname']; $passwort = $user_ida['passwort']; @@ -222,9 +224,9 @@ $agb = $_REQUEST['agb']; $n_ids = array(); foreach ($ids as $clan_challenge_id) { $alreadyParticipating = false; - $char_ids[] = getParticipatingCharIDs($clan_challenge_id, $user_ida['clan']); + $char_ids = getParticipatingCharIDs($clan_challenge_id, $user_ida['clan']); // okay, - foreach ($char_ids as $char_id) { + foreach ($char_ids as $slot => $char_id) { $char = getChar($char_id); if($char['besitzer'] == $user_ida['id']) { $alreadyParticipating = true; @@ -235,6 +237,7 @@ $agb = $_REQUEST['agb']; $n_ids[] = $clan_challenge_id; } } + $id_count = count($n_ids); } if($nnn_nn!=0) { @@ -246,7 +249,7 @@ $agb = $_REQUEST['agb']; echo ''; } - if($ids != 0) { + if($id_count != 0) { echo ''; echo '**Es gibt derzeit '.$id_count.' offene Clan-Kämpfe. Klicke hier um zum Clan-Kampf Menü zu gelangen.**'; }