diff options
author | alecpl <alec@alec.pl> | 2010-03-05 13:11:35 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-03-05 13:11:35 +0000 |
commit | 8ee776703607f597cfb1419fe3f0553f7c2ebf05 (patch) | |
tree | 9ed196fd5ac99aa5cb44883c4f794071763ebcbb | |
parent | a4f77800443173a73ff05a172ac6b0dd4d5e9a42 (diff) |
- Fix directories checking when temp_dir/log_dir aren't set
-rw-r--r-- | installer/test.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/installer/test.php b/installer/test.php index 90d089ffd..daa886441 100644 --- a/installer/test.php +++ b/installer/test.php @@ -94,12 +94,12 @@ if ($RCI->configured && ($messages = $RCI->check_config())) { if ($RCI->configured) { $pass = false; - $dirs[] = $RCI->config['temp_dir']; + $dirs[] = $RCI->config['temp_dir'] ? $RCI->config['temp_dir'] : 'temp'; if($RCI->config['log_driver'] != 'syslog') - $dirs[] = $RCI->config['log_dir']; + $dirs[] = $RCI->config['log_dir'] ? $RCI->config['log_dir'] : 'logs'; foreach ($dirs as $dir) { - $dirpath = $dir{0} == '/' ? $dir : INSTALL_PATH . $dir; + $dirpath = $dir[0] == '/' ? $dir : INSTALL_PATH . $dir; if (is_writable(realpath($dirpath))) { $RCI->pass($dir); $pass = true; |