issue #0001635 : Correct sql in getScoreCutoff

This commit is contained in:
Michael RICOIS 2013-05-31 13:00:00 +00:00
parent 20c4506505
commit 6373ec9bce

View File

@ -2320,7 +2320,8 @@ class Saisie extends WsScore
public function getScoreCutoff($siren)
{
$cutoffM = new Application_Model_JoScoresCutoff();
$row = $cutoffM->find($infos['siren'])->current();
$sql = $cutoffM->select()->where('siren=?', $siren);
$row = $cutoffM->fetchRow($sql);
if ( null === $row ) {
$result = false;
} else {