Avoid output error if file does not exists

This commit is contained in:
Laurent Destailleur 2011-06-10 20:32:22 +00:00
parent 71bb822984
commit d7e715d1a7

View File

@ -386,7 +386,7 @@ function dol_filesize($pathoffile)
function dol_filemtime($pathoffile)
{
$newpathoffile=dol_osencode($pathoffile);
return filemtime($newpathoffile);
return @filemtime($newpathoffile); // @Is to avoid errors if files does not exists
}
/**