mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 07:42:11 +01:00 
			
		
		
		
	Correction d'un problème
This commit is contained in:
		@@ -14,6 +14,7 @@ if (isset($_POST["edit_tournament"])) {
 | 
			
		||||
}
 | 
			
		||||
$orgas = $tournament->getOrganizers();
 | 
			
		||||
$teams = $tournament->getAllTeams();
 | 
			
		||||
$orgas_response = $DB->query("SELECT `id`, `surname`, `first_name` FROM `users` WHERE (`role` = 'ORGANIZER' OR `role` = 'ADMIN') AND `year` = '$YEAR';");
 | 
			
		||||
 | 
			
		||||
function updateTournament() {
 | 
			
		||||
	global $DB, $URL_BASE, $YEAR, $tournament, $orgas;
 | 
			
		||||
 
 | 
			
		||||
@@ -123,7 +123,7 @@ else {
 | 
			
		||||
						<select style="width: 100%;" id="organizer" name="organizer[]" multiple size="4" required>
 | 
			
		||||
							<?php
 | 
			
		||||
							while (($orga_data = $orgas_response->fetch()) !== FALSE) {
 | 
			
		||||
								echo "<option value=\"" . $orga_data["id"] . "\" " . ($tournament->organize($_SESSION["user_id"]) ? "selected" : "")
 | 
			
		||||
								echo "<option value=\"" . $orga_data["id"] . "\" " . ($tournament->organize($orga_data["id"]) ? "selected" : "")
 | 
			
		||||
									. ">" . $orga_data["first_name"] . " " . $orga_data["surname"] . "</option>\n";
 | 
			
		||||
							}
 | 
			
		||||
							?>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user