diff --git a/includes/scoresws/scoresws.php b/includes/scoresws/scoresws.php index 6a6079e31..3b65e29ca 100644 --- a/includes/scoresws/scoresws.php +++ b/includes/scoresws/scoresws.php @@ -245,7 +245,9 @@ function scoresws_dirigeants($siret, $siren, $idEntreprise) if (($siret*1)==0 && ($siren*1)<100) { $fileName = 'dirigeants-'.$idEntreprise; }else{ $fileName = 'dirigeants-'.$siret; } $histo = false; - if ($_REQUEST['vue']=='histo'){ $fileName .= '-histo'; $histo=true; } + if ( isset($_REQUEST['vue']) && $_REQUEST['vue']=='histo' ){ + $fileName .= '-histo'; $histo=true; + } cache_filename($fileName); if( 0 && cache_exist() && !( preg_match('/\bsaisie\b/i', $_SESSION['tabInfo']['droits']) || $_SESSION['tabInfo']['mode_edition']==1 ) ){ $dirs = cache_get('dirs'); diff --git a/www/pages/dirigeants.php b/www/pages/dirigeants.php index 2051abf30..458f96b72 100644 --- a/www/pages/dirigeants.php +++ b/www/pages/dirigeants.php @@ -43,7 +43,7 @@ $dirs = scoresws_dirigeants($siret, $siren, $idEntreprise);