From: Evan Prodromou Date: Sun, 1 Mar 2009 01:42:12 +0000 (-0800) Subject: Add a flag for if there's no config file X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f0d3ba2bc2b9a4391a89e343e9dea2622d7d9972;p=quix0rs-gnu-social.git Add a flag for if there's no config file --- diff --git a/lib/common.php b/lib/common.php index 4fc749ca06..2298c5f88f 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; } }