1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-26 05:57:39 +02:00

Correction de bugs concernant les classes et écoles

This commit is contained in:
Yohann D'ANELLO
2020-01-24 11:13:11 +01:00
parent 2ee1c75d0c
commit 61d5af0651
3 changed files with 5 additions and 2 deletions

View File

@ -300,7 +300,7 @@ class User
{
global $DB;
$this->school = $school;
$DB->prepare("UPDATE `users` SET `school` = ? WHERE `id` = ?;")->execute([SchoolClass::getName($school), $this->getId()]);
$DB->prepare("UPDATE `users` SET `school` = ? WHERE `id` = ?;")->execute([$school, $this->getId()]);
}
public function getClass()