From fc8be6aed1ee546a04909bafc4475244b8186bab Mon Sep 17 00:00:00 2001 From: pdontthink Date: Wed, 1 Apr 2009 11:37:02 +0000 Subject: [PATCH] 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 (http://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 --- src/left_main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.25.1