Commit 10d06e4c authored by Manfred Kutas's avatar Manfred Kutas

ZP-394 Delayed terminating of searches throws warning.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 21cf7d20
......@@ -1189,6 +1189,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