Commit d8d62d1a authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-918 Only add GAB folder if it's found.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 25b1ee3b
......@@ -515,7 +515,9 @@ class DeviceManager {
$this->device->SetKoeGabBackendFolderId($backendGabId);
}
$folders[$backendGabId] = $this->getAdditionalSyncFolder(KOE_GAB_STORE, $backendGabId, KOE_GAB_NAME, SYNC_FOLDER_TYPE_USER_APPOINTMENT, true, DeviceManager::FLD_ORIGIN_GAB);
if ($backendGabId) {
$folders[$backendGabId] = $this->getAdditionalSyncFolder(KOE_GAB_STORE, $backendGabId, KOE_GAB_NAME, SYNC_FOLDER_TYPE_USER_APPOINTMENT, true, DeviceManager::FLD_ORIGIN_GAB);
}
}
}
}
......
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