diff --git a/manager/repo/controle.php b/manager/repo/controle.php index 3f5ed4d..af858ff 100755 --- a/manager/repo/controle.php +++ b/manager/repo/controle.php @@ -166,8 +166,8 @@ class controleRepo extends DBAccess{ /* [1] SI LE CONTRÔLE N'EXISTE PAS => ON LE CRÉÉ =====================================================*/ echo "$mcc_module|$nom|$libelle|$coefficient
"; - $creerControle = DataBase::getPDO()->prepare("INSERT INTO controle(id_controle, id_mcc_module, nom, libelle, coefficient, date_publication) - VALUES(DEFAULT, :mcc_module, :nom, :libelle, :coefficient, NOW())"); + $creerControle = DataBase::getPDO()->prepare("INSERT INTO controle(id_controle, id_mcc_module, nom, libelle, base, coefficient, date_publication) + VALUES(DEFAULT, :mcc_module, :nom, :libelle, 20, :coefficient, NOW())"); $creerControle->execute(array( ':mcc_module' => $mcc_module, ':nom' => $nom, ':libelle' => $libelle, ':coefficient' => $coefficient )); /* ON VÉRIFIE QUE LE MODULE APPARTIENT AU MCC DE CE MCC_UE */