[Svn] r2882 - trunk/roundcubemail/plugins/archive

trac at roundcube.net trac at roundcube.net
Fri Aug 28 09:34:43 CEST 2009


Author: thomasb
Date: 2009-08-28 02:34:43 -0500 (Fri, 28 Aug 2009)
New Revision: 2882

Modified:
   trunk/roundcubemail/plugins/archive/archive.php
Log:
Only save prefs when in the right section

Modified: trunk/roundcubemail/plugins/archive/archive.php
===================================================================
--- trunk/roundcubemail/plugins/archive/archive.php	2009-08-27 13:38:26 UTC (rev 2881)
+++ trunk/roundcubemail/plugins/archive/archive.php	2009-08-28 07:34:43 UTC (rev 2882)
@@ -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;
+    }
   }
 
 }

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list