summaryrefslogtreecommitdiff
path: root/roundcubemail/index.php
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-07-28 11:45:35 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-07-28 11:45:35 +0000
commit5455ef5767bfbc1ce4c6216bd08b6861d603ece9 (patch)
tree57827fc08100df95c1225fca3904ac29de2e94bf /roundcubemail/index.php
parent32a41c185173b2eb5e9a147bd8042fb9b6f10306 (diff)
Show appropriate error message if config files are missing
git-svn-id: https://svn.roundcube.net/trunk@1614 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/index.php')
-rw-r--r--roundcubemail/index.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/roundcubemail/index.php b/roundcubemail/index.php
index 839a75f08..deb86c6dc 100644
--- a/roundcubemail/index.php
+++ b/roundcubemail/index.php
@@ -52,6 +52,15 @@ if ($RCMAIL->action != 'get' && $RCMAIL->action != 'viewsource') {
}
}
+
+// check if config files had errors
+if ($err_str = $RCMAIL->config->get_error()) {
+ raise_error(array(
+ 'code' => 601,
+ 'type' => 'php',
+ 'message' => $err_str), false, true);
+}
+
// check DB connections and exit on failure
if ($err_str = $DB->is_error()) {
raise_error(array(