make fopen() silent in fileSize()

This commit is contained in:
Uwe Steinmann 2021-10-04 20:24:02 +02:00
parent 357c0c1bac
commit 7bac4e730e

View File

@ -69,7 +69,7 @@ class SeedDMS_Core_File {
* @return bool|int
*/
static function fileSize($file) { /* {{{ */
if(!$a = fopen($file, 'r'))
if(!$a = @fopen($file, 'r'))
return false;
fseek($a, 0, SEEK_END);
$filesize = ftell($a);