diff options
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); |