|
|
@ -523,9 +523,9 @@ function joinChallenge($clan_challenge_id, array $user, $charid, $slot ) {
|
|
|
|
|
|
|
|
|
|
|
|
if($rows > 0) {
|
|
|
|
if($rows > 0) {
|
|
|
|
// okay we now have a complete competition and the challenge is closed :)
|
|
|
|
// okay we now have a complete competition and the challenge is closed :)
|
|
|
|
calculateChallenge($clan_challenge_id);
|
|
|
|
return calculateChallenge($clan_challenge_id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -604,7 +604,13 @@ function calculateChallenge($clan_challenge_id) {
|
|
|
|
return 'Der Clanfight Typ "'.$challenge['type'].'" wird nicht unterstützt, bitte melde dich beim Administrator!' ;
|
|
|
|
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ühren ... breche Skript ab!';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return NULL;
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|