]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/statusnet.php
Followup to IIS installer tweaks in [9bb48c36]:
[quix0rs-gnu-social.git] / lib / statusnet.php
index 7212a4a47d5ebc7db124580ccb110ff7a30ef5f4..7cb831696bc02ac512a69f6190469242227371c4 100644 (file)
@@ -336,8 +336,11 @@ class StatusNet
 
         foreach ($config_files as $_config_file) {
             if (@file_exists($_config_file)) {
-                include($_config_file);
-                self::$have_config = true;
+                // Ignore 0-byte config files
+                if (filesize($_config_file) > 0) {
+                    include($_config_file);
+                    self::$have_config = true;
+                }
             }
         }