Commit 6caab05c authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #510 in ZP/z-push from...

Merge pull request #510 in ZP/z-push from bugfix/ZP-1163-warning-when-install-z-push-common to develop

* commit 'a777322f':
  ZP-1163 Check if config exists before including it.
parents e13b7b46 a777322f
...@@ -27,7 +27,13 @@ ...@@ -27,7 +27,13 @@
*************************************************/ *************************************************/
// config file // 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 PHP-MAPI classes
include_once('backend/kopano/mapi/mapi.util.php'); 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