Commit f0042c7c authored by Sebastian Kummer's avatar Sebastian Kummer

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

Merge pull request #231 in ZP/z-push from bugfix/ZP-924-koe-gab-sync-calls-wrong-mapi-error to develop

* commit 'd3fbd5ba':
  ZP-924 Fix mapi_last_hresult() calls.
parents 920ca5fe d3fbd5ba
......@@ -508,12 +508,12 @@ class Kopano extends SyncWorker {
$entryid = @mapi_msgstore_createentryid($this->defaultstore, $user);
if(!$entryid) {
$this->Terminate(sprintf("Kopano->openMessageStore(): No store found for user '%s': 0x%08X - Aborting.", $user, mapi_last_hresult));
$this->Terminate(sprintf("Kopano->openMessageStore(): No store found for user '%s': 0x%08X - Aborting.", $user, mapi_last_hresult()));
}
$store = @mapi_openmsgstore($this->session, $entryid);
if (!$store) {
$this->Terminate(sprintf("Kopano->openMessageStore(): Could not open store for '%s': 0x%08X - Aborting.", $user, mapi_last_hresult));
$this->Terminate(sprintf("Kopano->openMessageStore(): Could not open store for '%s': 0x%08X - Aborting.", $user, mapi_last_hresult()));
}
$this->Log(sprintf("Kopano->openMessageStore(): Found '%s' store of user '%s': '%s'", (($return_public)?'PUBLIC':'DEFAULT'), $user, $store));
......
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