diff options
author | thomascube <thomas@roundcube.net> | 2008-07-28 11:45:35 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2008-07-28 11:45:35 +0000 |
commit | 8c72e33d3764cf2695256ab9c2a490d4c4f53696 (patch) | |
tree | 071141122582bbea8dab37322dc6f2884048cab7 /index.php | |
parent | 0ece58dfaffa79fe86d9e981f39d4902736fe67d (diff) |
Show appropriate error message if config files are missing
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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( |