mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-24 17:42:23 +00:00
Erreur 404 si le tournoi n'existe pas
This commit is contained in:
parent
2ce1f83873
commit
10da20f2c0
@ -8,6 +8,9 @@ $response = $DB->prepare("SELECT * FROM `tournaments` WHERE `name` = ? AND `year
|
||||
$response->execute([$tournament_name]);
|
||||
$data = $response->fetch();
|
||||
|
||||
if ($data === false)
|
||||
include "404.php";
|
||||
|
||||
$orgas_req = $DB->query("SELECT `users`.`id` AS `id`, `surname`, `first_name` FROM `users` JOIN `organizers` ON `users`.`id` = `organizer` WHERE `tournament` = " . $data["id"] . ";");
|
||||
$orgas = [];
|
||||
$orgas_id = [];
|
||||
|
Loading…
Reference in New Issue
Block a user