Fixed display of folders in activesync ui

An empty array is expected, we just need to check if the key exists.
This commit is contained in:
Christian Mollekopf 2023-04-20 10:24:46 +02:00
parent 6405635710
commit 5a833866c7

View file

@ -135,7 +135,7 @@ class kolab_activesync_ui
$type = 'mail';
}
if (!empty($folder_groups[$type])) {
if (array_key_exists($type, $folder_groups)) {
$folder_groups[$type][] = $folder;
if ($device_force_subscriptions && array_key_exists($folder, $device_force_subscriptions)) {