issue #0001635 : WSDL definition make the request always return true

This commit is contained in:
Michael RICOIS 2013-06-03 08:54:54 +00:00
parent 6373ec9bce
commit 7db8aa4ea0

View File

@ -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 {
if ( null !== $row ) {
if ( $this->tabInfoUser['typeScore']==20 ) {
$convert100to20 = array(
0 => 0,