]> git.mxchange.org Git - friendica.git/commitdiff
detect empty .htconfig.php - in case permissions need to be set on it in order to...
authorFriendika <info@friendika.com>
Wed, 9 Mar 2011 02:11:36 +0000 (18:11 -0800)
committerFriendika <info@friendika.com>
Wed, 9 Mar 2011 02:11:36 +0000 (18:11 -0800)
boot.php
index.php

index 6bd78b87d538043daa94db50291b28f8c068dfad..d3380a395b6815e73ed826d6c7152d2c79bb4e07 100644 (file)
--- 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"     );
index bbd2c81cd67468adb70227688d9993056eab30b4..01d8eb2a1333b3670eba575961df4338d9b6952f 100644 (file)
--- 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");