issue #0001635 : WSDL definition make the request always return true
This commit is contained in:
parent
6373ec9bce
commit
7db8aa4ea0
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user