mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-26 05:57:39 +02:00
Restructuration de la page d'inscription
This commit is contained in:
@ -74,7 +74,7 @@ class User
|
||||
$this->country = $data["country"];
|
||||
$this->phone_number = $data["phone_number"];
|
||||
$this->school = $data["school"];
|
||||
$this->class = $data["class"];
|
||||
$this->class = SchoolClass::fromName($data["class"]);
|
||||
$this->responsible_name = $data["responsible_name"];
|
||||
$this->responsible_phone = $data["responsible_phone"];
|
||||
$this->responsible_email = $data["responsible_email"];
|
||||
@ -250,7 +250,7 @@ class User
|
||||
{
|
||||
global $DB;
|
||||
$this->class = $class;
|
||||
$DB->prepare("UPDATE `users` SET `class` = ? WHERE `id` = ?;")->execute([$class, $this->getId()]);
|
||||
$DB->prepare("UPDATE `users` SET `class` = ? WHERE `id` = ?;")->execute([SchoolClass::getName($class), $this->getId()]);
|
||||
}
|
||||
|
||||
public function getResponsibleName()
|
||||
|
Reference in New Issue
Block a user