From 8590d8f730174e53fa09778393bb5134b8e19091 Mon Sep 17 00:00:00 2001 From: Yohann Date: Mon, 2 Sep 2019 21:25:06 +0200 Subject: [PATCH] Pas d'affichage de description pour qui n'en a pas --- server_files/informations.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server_files/informations.php b/server_files/informations.php index 237d49b..d80d70b 100644 --- a/server_files/informations.php +++ b/server_files/informations.php @@ -18,7 +18,7 @@ if ($user_data["team_id"] !== NULL) $team_data = $DB->query("SELECT `name`, `trigram` FROM `teams` WHERE `id` = " . $user_data["team_id"] . ";")->fetch(); $documents_req = $DB->query("SELECT * FROM `documents` WHERE `user` = $id;"); -$tournaments_req = $DB->query("SELECT `tournament`, `name` FROM `organizers` JOIN `tournaments` ON `tournaments`.`id` = `tournament` WHERE `organizer` = $id ORDER BY `name`;"); +$tournaments_req = $DB->query("SELECT `tournament`, `name` FROM `organizers` JOIN `tournaments` ON `tournaments`.`id` = `tournament` WHERE `organizer` = $id ORDER BY `date_start`, `name`;"); ?> @@ -55,10 +55,12 @@ Numéro de téléphone :
Nom du responsable légal :
Numéro de téléphone du responsable légal :
Adresse e-mail du responsable légal : "> - + Description :
"; + if ($user_data["role"] == "ADMIN" || $user_data["role"] == "ORGANIZER") { while (($tournament_data = $tournaments_req->fetch()) !== false) { echo "Organise le tournoi " . $tournament_data["name"] . "
";