summaryrefslogtreecommitdiff
path: root/lib/statusnet.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/statusnet.php')
-rw-r--r--lib/statusnet.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/statusnet.php b/lib/statusnet.php
index 7212a4a47..7cb831696 100644
--- a/lib/statusnet.php
+++ b/lib/statusnet.php
@@ -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;
+ }
}
}