summaryrefslogtreecommitdiff
path: root/plugins/kolab_zpush
diff options
context:
space:
mode:
authorThomas <thomas@brotherli.ch>2011-11-16 10:48:37 (GMT)
committerThomas <thomas@brotherli.ch>2011-11-16 10:48:37 (GMT)
commit2c857ea350813725931b1bbb5c56a2678fc4ba6b (patch)
treed74ef1497b4911b8d8c177bab13caa1b25b38890 /plugins/kolab_zpush
parentfa86b4860fa72e155e2df380f463bb52527f8d4e (diff)
downloadroundcubemail-plugins-kolab-2c857ea350813725931b1bbb5c56a2678fc4ba6b.tar.gz
Only list known and supported folder types (#503)
Diffstat (limited to 'plugins/kolab_zpush')
-rw-r--r--plugins/kolab_zpush/kolab_zpush_ui.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/kolab_zpush/kolab_zpush_ui.php b/plugins/kolab_zpush/kolab_zpush_ui.php
index 559cb5e..1536f0a 100644
--- a/plugins/kolab_zpush/kolab_zpush_ui.php
+++ b/plugins/kolab_zpush/kolab_zpush_ui.php
@@ -91,12 +91,13 @@ class kolab_zpush_ui
if (!$attrib['id'])
$attrib['id'] = 'foldersubscriptions';
- // group folders by type
- $folder_groups = array('mail' => array(), 'contact' => array(), 'event' => array());
+ // group folders by type (show only known types)
+ $folder_groups = array('mail' => array(), 'contact' => array(), 'event' => array(), 'task' => array());
$folder_meta = $this->config->folders_meta();
foreach ($this->config->list_folders() as $folder) {
$type = $folder_meta[$folder]['TYPE'] ? $folder_meta[$folder]['TYPE'] : 'mail';
- $folder_groups[$type][] = $folder;
+ if (is_array($folder_groups[$type]))
+ $folder_groups[$type][] = $folder;
}
// build block for every folder type