summaryrefslogtreecommitdiff
path: root/plugins/archive/archive.php
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2009-08-28 07:34:43 +0000
committerthomascube <thomas@roundcube.net>2009-08-28 07:34:43 +0000
commit16506fbe39df8ddcab142be363d4017e5c69c004 (patch)
treed0aa6080ca8b0b061137ff397c9455a22aab6b78 /plugins/archive/archive.php
parent11e670da55d18a999773374563390c4b378e5e41 (diff)
Only save prefs when in the right section
Diffstat (limited to 'plugins/archive/archive.php')
-rw-r--r--plugins/archive/archive.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/archive/archive.php b/plugins/archive/archive.php
index 2bd1adc7a..2487e6dea 100644
--- a/plugins/archive/archive.php
+++ b/plugins/archive/archive.php
@@ -107,8 +107,10 @@ class archive extends rcube_plugin
function save_prefs($args)
{
- $args['prefs']['archive_mbox'] = get_input_value('_archive_mbox', RCUBE_INPUT_POST);
- return $args;
+ if ($args['section'] == 'folders') {
+ $args['prefs']['archive_mbox'] = get_input_value('_archive_mbox', RCUBE_INPUT_POST);
+ return $args;
+ }
}
}