From d818621633e2c687264682f0504869858f9c780d Mon Sep 17 00:00:00 2001 From: Ben Coburn Date: Fri, 8 Sep 2006 21:34:33 +0200 Subject: suppress boring errors Suppress any errors from set_time_limit, unlink, and file_exists functions. see: http://www.freelists.org/archives/dokuwiki/09-2006/msg00004.html darcs-hash:20060908193433-05dcb-013617431870ab5bfb2ce8c6e99ba5af13493228.gz --- inc/io.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inc/io.php') diff --git a/inc/io.php b/inc/io.php index f9fbbd103..2b1272675 100644 --- a/inc/io.php +++ b/inc/io.php @@ -170,7 +170,7 @@ function io_saveFile($file,$content,$append=false){ global $conf; $mode = ($append) ? 'ab' : 'wb'; - $fileexists = file_exists($file); + $fileexists = @file_exists($file); io_makeFileDir($file); io_lock($file); if(substr($file,-3) == '.gz'){ @@ -470,7 +470,7 @@ function io_download($url,$file,$useAttachment=false,$defaultName='',$maxSize=20 $file = $file.$name; } - $fileexists = file_exists($file); + $fileexists = @file_exists($file); $fp = @fopen($file,"w"); if(!$fp) return false; fwrite($fp,$data); -- cgit v1.2.3