Commit 3006aa6b authored by Sebastian Kummer's avatar Sebastian Kummer

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

Merge pull request #688 in ZP/z-push from bugfix/ZP-1398-z-push-admin-do-not-call-device--gethierarchycache-in-loop to develop

* commit '794f4f7a':
  ZP-1398 Do not call $device->GetHierarchyCache() in loop.
parents eac42d65 794f4f7a
......@@ -989,11 +989,12 @@ class ZPushAdminCLI {
$synchedFolders = 0;
$synchedFolderTypes = array();
$syncedFoldersInProgress = 0;
$hc = $device->GetHierarchyCache();
foreach ($folders as $folderid) {
if ($device->GetFolderUUID($folderid)) {
$synchedFolders++;
$type = $device->GetFolderType($folderid);
$folder = $device->GetHierarchyCache()->GetFolder($folderid);
$folder = $hc->GetFolder($folderid);
$name = $folder ? $folder->displayname : "unknown";
switch($type) {
case SYNC_FOLDER_TYPE_APPOINTMENT:
......
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