diff --git a/includes/surveillance/surveillance.php b/includes/surveillance/surveillance.php index 14cf626d1..2980d632d 100644 --- a/includes/surveillance/surveillance.php +++ b/includes/surveillance/surveillance.php @@ -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 = '
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');