diff options
author | Aleksander Machniak <alec@alec.pl> | 2015-07-31 09:49:03 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2015-07-31 09:49:03 +0200 |
commit | 793d563bde3a6c028fd27e4b723be84b150e4b2b (patch) | |
tree | 8a1ea10af98e01c141165a351b38d567ec037de2 | |
parent | f59ecb4f8acaee229fd668147aa396c88196a47a (diff) | |
download | webadmin-793d563bde3a6c028fd27e4b723be84b150e4b2b.tar.gz |
Throw error when kolab.conf is not readable (#5159)
-rw-r--r-- | lib/Conf.php | 6 |
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(); } |