From 16506fbe39df8ddcab142be363d4017e5c69c004 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Fri, 28 Aug 2009 03:34:43 -0400
Subject: [PATCH] Only save prefs when in the right section
---
plugins/archive/archive.php | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/plugins/archive/archive.php b/plugins/archive/archive.php
index 2bd1adc..2487e6d 100644
--- a/plugins/archive/archive.php
+++ b/plugins/archive/archive.php
@@ -107,8 +107,10 @@
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;
+ }
}
}
--
Gitblit v1.9.1