Only count folders with a UUID as being synchronized

Folders in Z-Push with the key '1' in $contentData set have are
synchronized all other folders are not.

References: KMP-27
This commit is contained in:
Jelle van der Waa 2017-01-30 16:33:55 +01:00 committed by Jelle van der Waa
parent 783145bb75
commit 0e24ab5da1

View File

@ -253,10 +253,9 @@ class PluginMDMModule extends Module
$folderType = $this->getSyncFolderType($type, $name);
if (!isset($synchedFolderTypes[$folderType])) {
$synchedFolderTypes[$folderType] = 0;
}
$synchedFolderTypes[$folderType]++;
if (isset($contentData[$folderid][self::FOLDERUUID])) {
$synchedFolderTypes[$folderType]++;
}
}
}