Correction dans l'ajout d'organisateurs
This commit is contained in:
parent
a36a4cc728
commit
eee1e9d68a
|
@ -6,7 +6,7 @@ if (!isset($_SESSION["role"]) || $_SESSION["role"] != Role::ADMIN)
|
||||||
$has_error = false;
|
$has_error = false;
|
||||||
$error_message = null;
|
$error_message = null;
|
||||||
|
|
||||||
if (isset($_POST["submitted"])) {
|
if (isset($_POST["add_orga"])) {
|
||||||
$orga = new NewOrganizer($_POST);
|
$orga = new NewOrganizer($_POST);
|
||||||
try {
|
try {
|
||||||
$orga->makeVerifications();
|
$orga->makeVerifications();
|
||||||
|
|
|
@ -44,7 +44,7 @@ require_once "header.php";
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<input class="btn btn-primary btn-lg btn-block" name="add_admin" type="submit" value="Ajouter un organisateur" />
|
<input class="btn btn-primary btn-lg btn-block" name="add_orga" type="submit" value="Ajouter un organisateur" />
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue