diff --git a/library/WsScore/Saisie/v0.2/Saisie.php b/library/WsScore/Saisie/v0.2/Saisie.php index 81da0715..bc530e31 100644 --- a/library/WsScore/Saisie/v0.2/Saisie.php +++ b/library/WsScore/Saisie/v0.2/Saisie.php @@ -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 {