Commit e264b635 authored by skummer's avatar skummer

ZP-137

- fixed: setup the folder in the backend before executing the fetch operation

git-svn-id: https://z-push.org/svn/z-push/trunk@1350 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 21ea9a14
......@@ -759,6 +759,11 @@ class Sync extends RequestProcessor {
$data = false;
try {
$fetchstatus = SYNC_STATUS_SUCCESS;
// if this is an additional folder the backend has to be setup correctly
if (!self::$backend->Setup(ZPush::GetAdditionalSyncFolderStore($spa->GetFolderId())))
throw new StatusException(sprintf("HandleSync(): could not Setup() the backend to fetch in folder id '%s'", $spa->GetFolderId()), SYNC_STATUS_OBJECTNOTFOUND);
$data = self::$backend->Fetch($spa->GetFolderId(), $id, $spa->GetCPO());
// check if the message is broken
......
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