Test du paramètre page
This commit is contained in:
parent
45324fac61
commit
2eaf07bffe
@ -100,8 +100,7 @@ function getSurveillance($page, $siret){
|
||||
'dirigeants' => 'dirigeants',
|
||||
);
|
||||
$return = '';
|
||||
$firephp->log($_SESSION,'SESSION');
|
||||
if(preg_match('/'.$assocPageDroit[$page].'\b/i', $_SESSION['tabInfo']['droits']))
|
||||
if(is_string($page) && array_key_exists($page, $assocPageDroit) && preg_match('/'.$assocPageDroit[$page].'\b/i', $_SESSION['tabInfo']['droits']))
|
||||
{
|
||||
if( preg_match('/voirsurv\b/i', $_SESSION['tabInfo']['pref']) &&
|
||||
inSurveillance($assocPageSource[$page], $siret))
|
||||
|
Loading…
x
Reference in New Issue
Block a user