Fixes that have been made on the server for the event fights

main
hecht 13 years ago
parent 0822d24b46
commit b394bbf80a

@ -523,9 +523,9 @@ function joinChallenge($clan_challenge_id, array $user, $charid, $slot ) {
if($rows > 0) {
// okay we now have a complete competition and the challenge is closed :)
calculateChallenge($clan_challenge_id);
return calculateChallenge($clan_challenge_id);
}
return NULL;
}
/**
@ -586,7 +586,7 @@ function calculateChallenge($clan_challenge_id) {
}
$result = NULL;
// okay now determine the type of fight
switch($challenge['type']) {
case DAVY_BACK_FIGHT:
@ -604,7 +604,13 @@ function calculateChallenge($clan_challenge_id) {
return 'Der Clanfight Typ "'.$challenge['type'].'" wird nicht unterstützt, bitte melde dich beim Administrator!' ;
}
mysql_query('UPDATE clan_challenges set event_id = '.$event_id.', enddate = \''.date("Y-m-d H:i:s",$result).'\' WHERE clan_challenge_id = ' .$clan_challenge_id);
$sql = 'UPDATE clan_challenges set event_id = '.$event_id.', enddate = \''.date("Y-m-d H:i:s",$result).'\' WHERE clan_challenge_id = ' .$clan_challenge_id;
$res = mysql_query($sql);
if(!$res) {
echo $sql.'<br>';
return 'Konnte Datenbank-Anfrage nicht durchf&uuml;hren ... breche Skript ab!';
}
return NULL;
}

Loading…
Cancel
Save