Commit a777322f authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-1163 Check if config exists before including it.

Released under the Affero GNU General Public License (AGPL) version 3.
parent e13b7b46
......@@ -27,7 +27,13 @@
*************************************************/
// config file
require_once("backend/kopano/config.php");
$config_path = stream_resolve_include_path("backend/kopano/config.php");
if ($config_path !== false) {
require_once($config_path);
}
else {
ZLog::Write(LOGLEVEL_WARN, "Kopano backend config file can not be found");
}
// include PHP-MAPI classes
include_once('backend/kopano/mapi/mapi.util.php');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment