X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fsent_subfolders%2Ffunctions.php;h=4cf6e5605960d8229964283ca05faf6ce30f41e1;hp=8225199714b1a46f7e9326982def72e14c377f33;hb=16dd8736f68b753f06df30ff39892ef18579e2ce;hpb=d4e46166df04792c6b939356ea5dfda8e47bba7b diff --git a/plugins/sent_subfolders/functions.php b/plugins/sent_subfolders/functions.php index 82251997..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-2009 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. */