Correction envoie mail

This commit is contained in:
Yass 2026-03-02 09:13:53 +01:00
parent 8b094379ca
commit e3d85f7946
4 changed files with 32 additions and 11 deletions

View file

@ -22,11 +22,18 @@
$strRq = "SELECT image.*
FROM image";
if ($intLimit > 0){
$strRq .= " LIMIT ".$intLimit;
$strRq .= " LIMIT :limit";
}
return $this->_db->query($strRq)->fetchAll();
$rqPrep = $this->_db->prepare($strRq);
if ($intLimit > 0){
$rqPrep->bindValue(":limit", $intLimit, PDO::PARAM_INT);
}
$rqPrep->execute();
return $rqPrep->fetchAll();
}
}