Correction requete SQL
This commit is contained in:
parent
3d3a231b27
commit
3870bcd2ff
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user