mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 13:11:31 +00:00
make fopen() silent in fileSize()
This commit is contained in:
parent
357c0c1bac
commit
7bac4e730e
|
@ -69,7 +69,7 @@ class SeedDMS_Core_File {
|
||||||
* @return bool|int
|
* @return bool|int
|
||||||
*/
|
*/
|
||||||
static function fileSize($file) { /* {{{ */
|
static function fileSize($file) { /* {{{ */
|
||||||
if(!$a = fopen($file, 'r'))
|
if(!$a = @fopen($file, 'r'))
|
||||||
return false;
|
return false;
|
||||||
fseek($a, 0, SEEK_END);
|
fseek($a, 0, SEEK_END);
|
||||||
$filesize = ftell($a);
|
$filesize = ftell($a);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user