From 8c72e33d3764cf2695256ab9c2a490d4c4f53696 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Mon, 28 Jul 2008 07:45:35 -0400
Subject: [PATCH] Show appropriate error message if config files are missing

---
 index.php |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/index.php b/index.php
index 839a75f..deb86c6 100644
--- a/index.php
+++ b/index.php
@@ -52,6 +52,15 @@
   }
 }
 
+
+// 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(

--
Gitblit v1.9.1