Fix: Remove warning
This commit is contained in:
parent
72cf30350a
commit
1c618d7100
@ -195,7 +195,7 @@ if ($what == 'mysql')
|
||||
{
|
||||
// Renommer fichier sortie en fichier erreur
|
||||
//print "$outputfile -> $outputerror";
|
||||
dol_delete_file($outputerror);
|
||||
dol_delete_file($outputerror,1);
|
||||
@rename($outputfile,$outputerror);
|
||||
// Si safe_mode on et command hors du parametre exec, on a un fichier out vide donc errormsg vide
|
||||
if (! $errormsg) $errormsg=$langs->trans("ErrorFailedToRunExternalCommand");
|
||||
|
||||
@ -2198,11 +2198,12 @@ function print_fleche_navigation($page,$file,$options='',$nextpage,$betweenarrow
|
||||
/**
|
||||
* \brief Remove a file or several files with a mask
|
||||
* \param file File to delete or mask of file to delete
|
||||
* \param disableglob Disable usage of globa like *
|
||||
* \param disableglob Disable usage of glob like *
|
||||
* \param boolean True if file deleted, False if error
|
||||
*/
|
||||
function dol_delete_file($file,$disableglob=0)
|
||||
{
|
||||
//print "x".$file." ".$disableglob;
|
||||
$ok=true;
|
||||
$newfile=utf8_check($file)?utf8_decode($file):$file; // glob function accepts only ISO string
|
||||
if (empty($disableglob))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user