Browse Source

Prevent endless recursive sent subfolder names - see: http://thread.gmane.org/gmane.mail.squirrelmail.user/39178

pdontthink 13 years ago
parent
commit
56dd93f889
1 changed files with 4 additions and 0 deletions
  1. 4 0
      plugins/sent_subfolders/functions.php

+ 4 - 0
plugins/sent_subfolders/functions.php

@@ -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. */