Skip to content
Snippets Groups Projects
Commit de2469ea authored by Andreas Gohr's avatar Andreas Gohr
Browse files

Merge pull request #116 from glensc/install-over-empty-file

consider empty files as no file in installer
parents 9f2f766c 56d54889
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment