mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 13:52:17 +01:00 
			
		
		
		
	Erreur 404 si le tournoi n'existe pas
This commit is contained in:
		@@ -8,6 +8,9 @@ $response = $DB->prepare("SELECT * FROM `tournaments` WHERE `name` = ? AND `year
 | 
				
			|||||||
$response->execute([$tournament_name]);
 | 
					$response->execute([$tournament_name]);
 | 
				
			||||||
$data = $response->fetch();
 | 
					$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_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 = [];
 | 
				
			||||||
$orgas_id = [];
 | 
					$orgas_id = [];
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user