From aaf8dc011015b1a347c71495582808a9f3f40f64 Mon Sep 17 00:00:00 2001 From: "anthony.richard" Date: Tue, 21 Nov 2023 14:18:28 +0100 Subject: [PATCH] c mieux --- Project/php/controller/TeacherController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project/php/controller/TeacherController.php b/Project/php/controller/TeacherController.php index 9efda01..f92aaf6 100755 --- a/Project/php/controller/TeacherController.php +++ b/Project/php/controller/TeacherController.php @@ -81,7 +81,7 @@ class TeacherController extends UserController $words[] = array($frenchWord, $englishWord); } - if (count($words) % 2 == 0) throw new Exception("il manque un mot"); + if (count($words) % 2 == 1) throw new Exception("il manque un mot"); else { $mdl->addVocabList($user->getId(), $name, "", $words); $this->affAllVocab();