summaryrefslogtreecommitdiff
path: root/plugins/kolab_folders
diff options
context:
space:
mode:
authorAleksander Machniak (Kolab Systems) <machniak@kolabsys.com>2011-06-17 08:04:00 (GMT)
committerAleksander Machniak (Kolab Systems) <machniak@kolabsys.com>2011-06-17 08:04:00 (GMT)
commit2f2254289300f8327f23219b4740239c577b59fd (patch)
tree136bd80cd2c0c82aa3f9a498be21a7fa29f76106 /plugins/kolab_folders
parent9e93cd9613e53e1d0f7386a91529109968585fa3 (diff)
downloadroundcubemail-plugins-kolab-2f2254289300f8327f23219b4740239c577b59fd.tar.gz
Improved namespace roots handling
Diffstat (limited to 'plugins/kolab_folders')
-rw-r--r--plugins/kolab_folders/kolab_folders.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/kolab_folders/kolab_folders.php b/plugins/kolab_folders/kolab_folders.php
index 69d8b29..60f37b1 100644
--- a/plugins/kolab_folders/kolab_folders.php
+++ b/plugins/kolab_folders/kolab_folders.php
@@ -163,6 +163,10 @@ class kolab_folders extends rcube_plugin
*/
function folder_form($args)
{
+ if ($args['options']['is_root']) {
+ return $args;
+ }
+
if (!$this->metadata_support()) {
return $args;
}
@@ -218,8 +222,8 @@ class kolab_folders extends rcube_plugin
*/
function folder_save($args)
{
- $ctype = trim(get_input_value('_ctype', RCUBE_INPUT_POST));
- $subtype = trim(get_input_value('_subtype', RCUBE_INPUT_POST));
+ $ctype = trim(get_input_value('_ctype', RCUBE_INPUT_POST));
+ $subtype = trim(get_input_value('_subtype', RCUBE_INPUT_POST));
$mbox = $args['record']['name'];
$old_mbox = $args['record']['oldname'];
$subscribe = $args['record']['subscribe'];