diff options
author | Andreas Gohr <andi@splitbrain.org> | 2013-10-20 11:30:51 -0700 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2013-10-20 11:30:51 -0700 |
commit | d9529222b05d3366179c8a5bbd6d717664b98de0 (patch) | |
tree | 7789b8bc9ee9405f0ce33ff19dad5d15fb9b6207 /inc/init.php | |
parent | 9f5b9cf15569babaa90f0d6f3dd58cefd5439bc5 (diff) | |
parent | e07886c01389351f28a254ef6f7c9611453508fb (diff) | |
download | rpg-d9529222b05d3366179c8a5bbd6d717664b98de0.tar.gz rpg-d9529222b05d3366179c8a5bbd6d717664b98de0.tar.bz2 |
Merge pull request #380 from splitbrain/phpstrict
Php strict
Diffstat (limited to 'inc/init.php')
-rw-r--r-- | inc/init.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/init.php b/inc/init.php index 248d27b9c..a937b934d 100644 --- a/inc/init.php +++ b/inc/init.php @@ -288,7 +288,7 @@ function init_files(){ $fh = @fopen($file,'a'); if($fh){ fclose($fh); - if($conf['fperm']) chmod($file, $conf['fperm']); + if(!empty($conf['fperm'])) chmod($file, $conf['fperm']); }else{ nice_die("$file is not writable. Check your permissions settings!"); } |