From 16506fbe39df8ddcab142be363d4017e5c69c004 Mon Sep 17 00:00:00 2001 From: thomascube Date: Fri, 28 Aug 2009 07:34:43 +0000 Subject: Only save prefs when in the right section --- plugins/archive/archive.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins/archive') 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; + } } } -- cgit v1.2.3