From: pdontthink Date: Wed, 1 Apr 2009 11:37:02 +0000 (+0000) Subject: Special folders that are turned off get saved in user prefs as "none" (SMPREF_NONE... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fc8be6aed1ee546a04909bafc4475244b8186bab;p=squirrelmail.git Special folders that are turned off get saved in user prefs as "none" (SMPREF_NONE), so we need to test for that case when autocreating. Commit number 12315 (squirrelmail.svn.sourceforge.net/viewvc/squirrelmail?view=rev&revision=12315) was a little over-zealous in this one place. (#1972177) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13494 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/left_main.php b/src/left_main.php index a0206184..69e08a52 100644 --- a/src/left_main.php +++ b/src/left_main.php @@ -72,7 +72,7 @@ if ($auto_create_special && !isset($auto_create_done)) { $autocreate = array($sent_folder, $trash_folder, $draft_folder); $folders_created = false; foreach( $autocreate as $folder ) { - if ($folder != '') { + if ($folder != '' && $folder != SMPREF_NONE) { /** * If $show_only_subscribed_folders is true, don't use * $mailboxes array for checking if mailbox exists.