diff options
author | Andreas Gohr <andi@splitbrain.org> | 2012-07-08 10:53:01 -0700 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2012-07-08 10:53:01 -0700 |
commit | de2469ea3286a83e8445800c6ac502713f6535d8 (patch) | |
tree | 9009b0fc605b25a9180dab203295fba80c1b96c0 /install.php | |
parent | 9f2f766c00c72204f3a4bc723177d4fec53d8780 (diff) | |
parent | 56d54889370924612b008237138a9042bbcc4251 (diff) | |
download | rpg-de2469ea3286a83e8445800c6ac502713f6535d8.tar.gz rpg-de2469ea3286a83e8445800c6ac502713f6535d8.tar.bz2 |
Merge pull request #116 from glensc/install-over-empty-file
consider empty files as no file in installer
Diffstat (limited to 'install.php')
-rw-r--r-- | install.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/install.php b/install.php index 3d9fddbb2..0a2bf0a46 100644 --- a/install.php +++ b/install.php @@ -431,7 +431,7 @@ function check_configs(){ // configs shouldn't exist foreach ($config_files as $file) { - if (@file_exists($file)) { + if (@file_exists($file) && filesize($file)) { $file = str_replace($_SERVER['DOCUMENT_ROOT'],'{DOCUMENT_ROOT}/', $file); $error[] = sprintf($lang['i_confexists'],$file); $ok = false; |