diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2013-10-16 22:04:01 +0100 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2013-10-16 22:04:01 +0100 |
commit | 443e135d59e9d227eec818dabf9ee64d7a73d474 (patch) | |
tree | 14c649d0a1fade810971d7e6da53471b41484fdf /inc/init.php | |
parent | 4d8acaacee33f49d51c06f6dae1dbe245018a020 (diff) | |
download | rpg-443e135d59e9d227eec818dabf9ee64d7a73d474.tar.gz rpg-443e135d59e9d227eec818dabf9ee64d7a73d474.tar.bz2 |
replace boolean conditional checks on possibly uninitialized vars with \!empty/empty/isset as appropriate
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 30eb1b251..d96860e10 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!"); } |