fixed issue #0000135 : correction information source transmise à la méthode inSurveillance

This commit is contained in:
Michael RICOIS 2010-01-11 09:57:47 +00:00
parent 2f5ed73060
commit 2bab9cfdff

View File

@ -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');