diff --git a/library/WsScore/Saisie/v0.2/Saisie.php b/library/WsScore/Saisie/v0.2/Saisie.php index bc530e31..ff3b2188 100644 --- a/library/WsScore/Saisie/v0.2/Saisie.php +++ b/library/WsScore/Saisie/v0.2/Saisie.php @@ -1381,7 +1381,7 @@ class Saisie extends WsScore } } - if ($row!=null) { + if ($row!==null) { //Backup in historiques $historiquesM = new Application_Model_HistoriquesBilans(); @@ -2315,16 +2315,16 @@ class Saisie extends WsScore /** * Get cutoff on a SIREN * @param string $siren - * @return boolean|string + * @return mixed */ public function getScoreCutoff($siren) { $cutoffM = new Application_Model_JoScoresCutoff(); $sql = $cutoffM->select()->where('siren=?', $siren); + file_put_contents('test.log', $sql->__toString()); $row = $cutoffM->fetchRow($sql); - if ( null === $row ) { - $result = false; - } else { + $result = false; + if ( null !== $row ) { if ( $this->tabInfoUser['typeScore']==20 ) { $convert100to20 = array( 0 => 0,