Avoid output error if file does not exists
This commit is contained in:
parent
71bb822984
commit
d7e715d1a7
@ -386,7 +386,7 @@ function dol_filesize($pathoffile)
|
|||||||
function dol_filemtime($pathoffile)
|
function dol_filemtime($pathoffile)
|
||||||
{
|
{
|
||||||
$newpathoffile=dol_osencode($pathoffile);
|
$newpathoffile=dol_osencode($pathoffile);
|
||||||
return filemtime($newpathoffile);
|
return @filemtime($newpathoffile); // @Is to avoid errors if files does not exists
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user