Correction erreur detection fichier bilan
This commit is contained in:
parent
12b2fd9253
commit
1ede9a392f
@ -65,6 +65,7 @@ else
|
||||
));
|
||||
|
||||
$error = '';
|
||||
$message = '';
|
||||
switch($vue)
|
||||
{
|
||||
case 'actes':
|
||||
@ -76,13 +77,13 @@ else
|
||||
case 'bilans':
|
||||
if(!INFOGREFFE_DEBUG) $client->setLog('greffe_'.$vue, $siren, 0, $ref);
|
||||
$info = unserialize(urldecode($_REQUEST['info']));
|
||||
$firephp->log($ref,'ref');
|
||||
$firephp->log($info,'info');
|
||||
if(file_exist('bilan-'.$siren.'-'.$ref.'.pdf')){
|
||||
$suffixe = 'bilan';
|
||||
}elseif(file_exist('acte-'.$siren.'-'.$ref.'.pdf')){
|
||||
$suffixe = 'acte-';
|
||||
}
|
||||
$message.= '<br/><a href="./datafile.php?q='.$suffixe.'-'.$siren.'-'.$ref.'.pdf&type=pdf" target="_blank">Ouvrir le bilan millésime '.$info['type'].'</a>';
|
||||
if(file_exists(PATH_DATA.'/pdf/bilan-'.$siren.'-'.$ref.'.pdf')){
|
||||
$message.= '<br/><a href="./datafile.php?q=bilan-'.$siren.'-'.$ref.'.pdf&type=pdf" target="_blank">Ouvrir le bilan millésime '.$info['type'].'</a>';
|
||||
}elseif(file_exists(PATH_DATA.'/pdf/acte-'.$siren.'-'.$ref.'.pdf')){
|
||||
$message.= '<br/><a href="./datafile.php?q=acte-'.$siren.'-'.$ref.'.pdf&type=pdf" target="_blank">Ouvrir le bilan millésime '.$info['type'].'</a>';
|
||||
}
|
||||
break;
|
||||
}
|
||||
echo $message;
|
||||
|
Loading…
x
Reference in New Issue
Block a user