correction bugs page newFiche

This commit is contained in:
Pierr0
2024-01-07 16:26:43 +01:00
parent df7599ab9b
commit fcf292e823
5 changed files with 43 additions and 29 deletions

View File

@@ -175,12 +175,11 @@ class Class_newFiche
{
$req = 'UPDATE ligne_hors_forfait
SET "lhRefus" = :stateF
WHERE "rVisiteur" = :userId AND "rMois" = :monthF AND "lhId" = :idFrais;';
WHERE "lhId" = :idFrais;';
$result = $this->pdo->prepare($req);
$state = ($state) ? 'false' : 'true';
$result->bindParam(':stateF', $state);
$result->bindParam(':idFrais', $idFrais);
$result->bindParam(':userId', $this->userId);
$result->bindParam(':monthF', $this->month);
return $result->execute();
}