diff options
author | Friendika <info@friendika.com> | 2011-03-08 18:11:36 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-03-08 18:11:36 -0800 |
commit | 041f3ca774b07e404c5a9eea6e42c9875d444387 (patch) | |
tree | 12135053f4924ba2a10cc55d9aa3db11c2ebb596 /index.php | |
parent | c40944fc86d4c53f32563dc8685c0026ac4ee641 (diff) | |
download | volse-hubzilla-041f3ca774b07e404c5a9eea6e42c9875d444387.tar.gz volse-hubzilla-041f3ca774b07e404c5a9eea6e42c9875d444387.tar.bz2 volse-hubzilla-041f3ca774b07e404c5a9eea6e42c9875d444387.zip |
detect empty .htconfig.php - in case permissions need to be set on it in order to install
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -19,11 +19,11 @@ $a = new App; /** * * Load the configuration file which contains our DB credentials. - * Ignore errors. If the file doesn't exist, we are running in installation mode. + * Ignore errors. If the file doesn't exist or is empty, we are running in installation mode. * */ -$install = ((file_exists('.htconfig.php')) ? false : true); +$install = ((file_exists('.htconfig.php') && filesize('.htconfig.php')) ? false : true); @include(".htconfig.php"); |