diff options
author | chris <chris@jalakai.co.uk> | 2006-09-23 22:36:09 +0200 |
---|---|---|
committer | chris <chris@jalakai.co.uk> | 2006-09-23 22:36:09 +0200 |
commit | bb4866bd74ec6b55bf41e75c158d940dced91f2f (patch) | |
tree | fd3bf3458189d8ef7d5854720af2f825fd874d28 /inc/io.php | |
parent | a424cd8e52ec6e1e860e19467c8cea23871f611f (diff) | |
download | rpg-bb4866bd74ec6b55bf41e75c158d940dced91f2f.tar.gz rpg-bb4866bd74ec6b55bf41e75c158d940dced91f2f.tar.bz2 |
minor bugfix and boring error removal
darcs-hash:20060923203609-9b6ab-ecca679faa254a29772868508050fcf3206b0814.gz
Diffstat (limited to 'inc/io.php')
-rw-r--r-- | inc/io.php | 4 |
1 files changed, 2 insertions, 2 deletions
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); |