Correction requete SQL

This commit is contained in:
Michael RICOIS 2015-07-28 13:01:10 +00:00
parent 3d3a231b27
commit 3870bcd2ff

View File

@ -895,7 +895,7 @@ class Pieces extends Scores_Ws_Server
// --- Lecture de la table des actes associations
$statutM = new Application_Model_JoAssoStatut();
$statutSql = $statutM->select()->where('companyId=?', $companyId);
$statutResult = $statutM->fetchAll($sql);
$statutResult = $statutM->fetchAll($statutSql);
$output = array();
if (count($statutResult) > 0) {
@ -932,7 +932,7 @@ class Pieces extends Scores_Ws_Server
$statutSql = $statutM->select()
->where('companyId=?', $companyId)
->where('satutDate=?', $date);
$statutResult = $statutM->fetchRow($sql);
$statutResult = $statutM->fetchRow($statutSql);
if ($statutResult === null) {
return false;
}