Merge pull request #10 in KWA/mobile-device-management from ~JVANDERWAA/mobile-device-management:KMP-27-synchronized-folders to master

* commit '0e24ab5da1934aa1466a53ab52746895922e1ffa':
  Only count folders with a UUID as being synchronized
This commit is contained in:
Sean van der Spek 2017-02-01 09:37:07 +01:00
commit 1b0d83f0e2

View File

@ -253,12 +253,11 @@ class PluginMDMModule extends Module
$folderType = $this->getSyncFolderType($type, $name); $folderType = $this->getSyncFolderType($type, $name);
if (!isset($synchedFolderTypes[$folderType])) { if (isset($contentData[$folderid][self::FOLDERUUID])) {
$synchedFolderTypes[$folderType] = 0;
}
$synchedFolderTypes[$folderType]++; $synchedFolderTypes[$folderType]++;
} }
} }
}
foreach ($synchedFolderTypes as $key => $value) { foreach ($synchedFolderTypes as $key => $value) {
$synchronizedData = $synchronizedData . $key; $synchronizedData = $synchronizedData . $key;