aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-03-08 18:11:36 -0800
committerFriendika <info@friendika.com>2011-03-08 18:11:36 -0800
commit041f3ca774b07e404c5a9eea6e42c9875d444387 (patch)
tree12135053f4924ba2a10cc55d9aa3db11c2ebb596
parentc40944fc86d4c53f32563dc8685c0026ac4ee641 (diff)
downloadvolse-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
-rw-r--r--boot.php2
-rw-r--r--index.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/boot.php b/boot.php
index 6bd78b87d..d3380a395 100644
--- a/boot.php
+++ b/boot.php
@@ -3,7 +3,7 @@
set_time_limit(0);
define ( 'BUILD_ID', 1039 );
-define ( 'FRIENDIKA_VERSION', '2.10.0909' );
+define ( 'FRIENDIKA_VERSION', '2.10.0910' );
define ( 'DFRN_PROTOCOL_VERSION', '2.1' );
define ( 'EOL', "<br />\r\n" );
diff --git a/index.php b/index.php
index bbd2c81cd..01d8eb2a1 100644
--- a/index.php
+++ b/index.php
@@ -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");