Special folders that are turned off get saved in user prefs as "none" (SMPREF_NONE...
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 1 Apr 2009 11:37:02 +0000 (11:37 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 1 Apr 2009 11:37:02 +0000 (11:37 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13494 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/left_main.php

index a020618..69e08a5 100644 (file)
@@ -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.