task/20210226/various_fix #21

Merged
nemunaire merged 5 commits from task/20210226/various_fix into master 2021-02-27 08:57:26 +00:00
Showing only changes of commit 067b45bdfd - Show all commits

View File

@ -28,7 +28,9 @@ if (!defined('INDEX')) {
if ($flotteN->mission == '6') { if ($flotteN->mission == '6') {
erreur('Votre flotte est déjà en train de revenir !', 'red', '?p=flotte&n='.$idN, 1500); erreur('Votre flotte est déjà en train de revenir !', 'red', '?p=flotte&n='.$idN, 1500);
} elseif ($flotteN->end_time > $tpsDD) { } elseif ($flotteN->end_time > $tpsDD) {
$bdd->query("UPDATE $table_flottes SET mission = '6', effectue = '1', end_time = $tpsDD, end_galaxie = start_galaxie, end_ss = start_ss, end_position = start_position WHERE id_user = ".$planete->id_user." AND id = $idN;"); $bdd = new BDD();
$bdd->query("UPDATE $table_flottes SET mission = '6', end_time = $tpsDD, end_planete = start_planete WHERE id_user = ".$planete->id_user." AND id = $idN;");
$bdd->deconnexion();
redirection("?p=flotte&n=".$idN); redirection("?p=flotte&n=".$idN);
} else { } else {
erreur('Impossible d\'annuler la mission, elle a déjà commencée.', "red", '?p=flotte&n='.$idN, 1500); erreur('Impossible d\'annuler la mission, elle a déjà commencée.', "red", '?p=flotte&n='.$idN, 1500);