summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2015-07-31 09:49:03 +0200
committerAleksander Machniak <alec@alec.pl>2015-07-31 09:49:03 +0200
commit793d563bde3a6c028fd27e4b723be84b150e4b2b (patch)
tree8a1ea10af98e01c141165a351b38d567ec037de2 /lib
parentf59ecb4f8acaee229fd668147aa396c88196a47a (diff)
downloadwebadmin-793d563bde3a6c028fd27e4b723be84b150e4b2b.tar.gz
Throw error when kolab.conf is not readable (#5159)
Diffstat (limited to 'lib')
-rw-r--r--lib/Conf.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Conf.php b/lib/Conf.php
index 82c3eea..f4da854 100644
--- a/lib/Conf.php
+++ b/lib/Conf.php
@@ -52,11 +52,11 @@ class Conf {
public function __construct()
{
- // Do some magic configuration loading here.
- if (!file_exists(self::CONFIG_FILE)) {
- return;
+ if (!@is_readable(self::CONFIG_FILE)) {
+ trigger_error("Unable to read " . self::CONFIG_FILE, E_USER_ERROR);
}
+ // Do some magic configuration loading here.
$this->read_config();
}