fixed issue #0000135 : correction information source transmise à la méthode inSurveillance
This commit is contained in:
parent
2f5ed73060
commit
2bab9cfdff
@ -126,7 +126,7 @@ function getSurveillance($source, $siret){
|
||||
preg_match('/\b'.$assocSourceDroit[$source].'\b/i', $_SESSION['tabInfo']['droits']))
|
||||
{
|
||||
if( preg_match('/\bvoirsurv\b/i', $_SESSION['tabInfo']['pref']) &&
|
||||
inSurveillance($assocSourceDroit[$source], $siret))
|
||||
inSurveillance($source, $siret))
|
||||
{
|
||||
$return = '<br/>L\'entité est sous surveillance.'."\n";
|
||||
}
|
||||
@ -156,6 +156,7 @@ function getSurveillance($source, $siret){
|
||||
function inSurveillance($source, $siret){
|
||||
global $client, $firephp;
|
||||
$firephp->log($source, 'source');
|
||||
$firephp->log($siret, 'siret');
|
||||
try{
|
||||
$result = $client->getSurveillances($siret,$source);
|
||||
$firephp->log($result['results']['reponses'], 'response');
|
||||
|
Loading…
x
Reference in New Issue
Block a user