summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/lib/confparser.inc.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/web/lib/confparser.inc.php b/web/lib/confparser.inc.php
index e7128be6..499481df 100644
--- a/web/lib/confparser.inc.php
+++ b/web/lib/confparser.inc.php
@@ -8,7 +8,11 @@ function config_load() {
if (!$path) {
$path = "/etc/aurweb/config";
}
- $AUR_CONFIG = parse_ini_file($path, true, INI_SCANNER_RAW);
+ if (file_exists($path)) {
+ $AUR_CONFIG = parse_ini_file($path, true, INI_SCANNER_RAW);
+ } else {
+ die("aurweb config file not found");
+ }
}
}