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
|
//Backup in historiques
|
||||||
$historiquesM = new Application_Model_HistoriquesBilans();
|
$historiquesM = new Application_Model_HistoriquesBilans();
|
||||||
@ -2315,16 +2315,16 @@ class Saisie extends WsScore
|
|||||||
/**
|
/**
|
||||||
* Get cutoff on a SIREN
|
* Get cutoff on a SIREN
|
||||||
* @param string $siren
|
* @param string $siren
|
||||||
* @return boolean|string
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function getScoreCutoff($siren)
|
public function getScoreCutoff($siren)
|
||||||
{
|
{
|
||||||
$cutoffM = new Application_Model_JoScoresCutoff();
|
$cutoffM = new Application_Model_JoScoresCutoff();
|
||||||
$sql = $cutoffM->select()->where('siren=?', $siren);
|
$sql = $cutoffM->select()->where('siren=?', $siren);
|
||||||
|
file_put_contents('test.log', $sql->__toString());
|
||||||
$row = $cutoffM->fetchRow($sql);
|
$row = $cutoffM->fetchRow($sql);
|
||||||
if ( null === $row ) {
|
|
||||||
$result = false;
|
$result = false;
|
||||||
} else {
|
if ( null !== $row ) {
|
||||||
if ( $this->tabInfoUser['typeScore']==20 ) {
|
if ( $this->tabInfoUser['typeScore']==20 ) {
|
||||||
$convert100to20 = array(
|
$convert100to20 = array(
|
||||||
0 => 0,
|
0 => 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user