Commit c37ea5bd authored by Sebastian Kummer's avatar Sebastian Kummer

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

Merge pull request #83 in ZP/z-push from bugfix/ZP-394-delayed-terminating-of-searches-throws to develop

* commit '10d06e4c':
  ZP-394 Delayed terminating of searches throws warning.

(cherry picked from commit 5998b9dc)
parent 96146476
......@@ -1144,6 +1144,11 @@ class BackendZarafa implements IBackend, ISearchProvider {
*/
public function TerminateSearch($pid) {
ZLog::Write(LOGLEVEL_DEBUG, sprintf("ZarafaBackend->TerminateSearch(): terminating search for pid %d", $pid));
if (!isset($this->store) || $this->store === false) {
ZLog::Write(LOGLEVEL_WARN, sprintf("The store is not available. It is not possible to remove search folder with pid %d", $pid));
return false;
}
$storeProps = mapi_getprops($this->store, array(PR_STORE_SUPPORT_MASK, PR_FINDER_ENTRYID));
if (($storeProps[PR_STORE_SUPPORT_MASK] & STORE_SEARCH_OK) != STORE_SEARCH_OK) {
ZLog::Write(LOGLEVEL_WARN, "Store doesn't support search folders. Public store doesn't have FINDER_ROOT folder");
......
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