From bb4866bd74ec6b55bf41e75c158d940dced91f2f Mon Sep 17 00:00:00 2001 From: chris Date: Sat, 23 Sep 2006 22:36:09 +0200 Subject: minor bugfix and boring error removal darcs-hash:20060923203609-9b6ab-ecca679faa254a29772868508050fcf3206b0814.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 5fd1d6673..3bcde79ce 100644 --- a/inc/io.php +++ b/inc/io.php @@ -199,7 +199,7 @@ function io_saveFile($file,$content,$append=false){ fclose($fh); } - if(!$fileexists and $conf['fperm']) chmod($file, $conf['fperm']); + if(!$fileexists and !empty($conf['fperm'])) chmod($file, $conf['fperm']); io_unlock($file); return true; } @@ -291,7 +291,7 @@ function io_lock($file){ if ((time() - $timeStart) > 3) break; $locked = @mkdir($lockDir, $conf['dmode']); if($locked){ - if($conf['dperm']) chmod($lockDir, $conf['dperm']); + if(!empty($conf['dperm'])) chmod($lockDir, $conf['dperm']); break; } usleep(50); -- cgit v1.2.3