Skip to content
Snippets Groups Projects
Commit d7e715d1 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Avoid output error if file does not exists

parent 71bb8229
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment