summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-02-28 17:42:12 -0800
committerEvan Prodromou <evan@controlyourself.ca>2009-02-28 17:42:12 -0800
commitf0d3ba2bc2b9a4391a89e343e9dea2622d7d9972 (patch)
treed29c0f86eeb506e0ddcde77f4c56e5780e9eb6eb
parent99d8fea394be454c6c617dcb224804314db5f939 (diff)
Add a flag for if there's no config file
-rw-r--r--lib/common.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/common.php b/lib/common.php
index 4fc749ca0..2298c5f88 100644
--- a/lib/common.php
+++ b/lib/common.php
@@ -178,9 +178,12 @@ if (strlen($_path) > 0) {
$_config_files[] = INSTALLDIR.'/config.php';
+$_have_a_config = false;
+
foreach ($_config_files as $_config_file) {
if (file_exists($_config_file)) {
include_once($_config_file);
+ $_have_a_config = true;
}
}