Commit 48ef8730 authored by skummer's avatar skummer

ZP-121

fixed: execute free busy publish only if interface is available

git-svn-id: https://z-push.org/svn/z-push/trunk@1351 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent e264b635
...@@ -284,7 +284,7 @@ class FreeBusyPublish { ...@@ -284,7 +284,7 @@ class FreeBusyPublish {
} }
// Open updater for this user // Open updater for this user
if(isset($fbsupport)) { if(isset($fbsupport) && $fbsupport) {
$updaters = mapi_freebusysupport_loadupdate($fbsupport, Array($this->entryid)); $updaters = mapi_freebusysupport_loadupdate($fbsupport, Array($this->entryid));
$updater = $updaters[0]; $updater = $updaters[0];
...@@ -297,6 +297,8 @@ class FreeBusyPublish { ...@@ -297,6 +297,8 @@ class FreeBusyPublish {
// We're finished // We're finished
mapi_freebusysupport_close($fbsupport); mapi_freebusysupport_close($fbsupport);
} }
else
ZLog::Write(LOGLEVEL_WARN, "FreeBusyPublish is not available");
} }
/** /**
......
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