X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fsent_subfolders%2Ffunctions.php;h=4cf6e5605960d8229964283ca05faf6ce30f41e1;hb=16dd8736f68b753f06df30ff39892ef18579e2ce;hp=2c75d4a875a49d6d67ef596e7e6ff309caafa80a;hpb=1977ab5587905d225c6288141b82f7a6e3d29d02;p=squirrelmail.git diff --git a/plugins/sent_subfolders/functions.php b/plugins/sent_subfolders/functions.php index 2c75d4a8..4cf6e560 100644 --- a/plugins/sent_subfolders/functions.php +++ b/plugins/sent_subfolders/functions.php @@ -5,7 +5,7 @@ * * This is a standard SquirrelMail 1.2 API for plugins. * - * @copyright 1999-2010 The SquirrelMail Project Team + * @copyright 1999-2012 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package plugins @@ -131,6 +131,10 @@ function save_option_sent_subfolders_setting($option) { } else { setPref($data_dir, $username, 'use_sent_subfolders', SMPREF_ON); setPref($data_dir, $username, 'move_to_sent', SMPREF_ON); + $check_sent_subfolders_base = getPref($data_dir, $username, 'sent_subfolders_base', ''); + if ($check_sent_subfolders_base === '') { + setPref($data_dir, $username, 'sent_subfolders_base', $sent_subfolders_base); + } } /* Now just save the option as normal. */