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
Branches
Tags
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.
Please register or to comment