mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-25 06:22:22 +00:00
Correction dans l'ajout d'organisateurs
This commit is contained in:
parent
eee1e9d68a
commit
7096f6fee1
@ -38,7 +38,7 @@ class NewOrganizer {
|
||||
ensure(filter_var($this->email, FILTER_VALIDATE_EMAIL), "L'adresse e-mail est invalide.");
|
||||
$this->email = strtolower($this->email);
|
||||
ensure(!userExists($this->email), "Cette adresse e-mail est déjà utilisée.");
|
||||
$this->admin = $this->admin == "on" ? true : false;
|
||||
$this->admin = isset($this->admin) ? 1 : 0;
|
||||
}
|
||||
|
||||
public function register() {
|
||||
|
Loading…
Reference in New Issue
Block a user