X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fleft_main.php;h=427d6fc40d2857064fc126c07e22a9687b234999;hb=990216378c79dac7a2ec31077be6c6668889551e;hp=a3f2dfade924189c20c843c37b508ea327c94a65;hpb=165829a378d4e41c1a47b46be08fdbd20315077f;p=squirrelmail.git diff --git a/src/left_main.php b/src/left_main.php index a3f2dfad..427d6fc4 100644 --- a/src/left_main.php +++ b/src/left_main.php @@ -3,7 +3,7 @@ /** * left_main.php * - * Copyright (c) 1999-2001 The Squirrelmail Development Team + * Copyright (c) 1999-2002 The SquirrelMail Project Team * Licensed under the GNU GPL. For full terms see the file COPYING. * * This is the code for the left bar. The left bar shows the folders @@ -234,14 +234,12 @@ displayHtmlHeader( 'SquirrelMail', $xtra ); /* If requested and not yet complete, attempt to autocreate folders. */ if ($auto_create_special && !isset($auto_create_done)) { - $autocreate = array( $sent_folder, - $trash_folder, - $draft_folder ); + $autocreate = array($sent_folder, $trash_folder, $draft_folder); foreach( $autocreate as $folder ) { - if ($folder != '' && $folder != 'none') { + if (($folder != '') && ($folder != 'none')) { if ( !sqimap_mailbox_exists($imapConnection, $folder)) { sqimap_mailbox_create($imapConnection, $folder, ''); - } elseif ( !sqimap_mailbox_is_subscribed($imapConnection, $folder)) { + } else if (!sqimap_mailbox_is_subscribed($imapConnection, $folder)) { sqimap_subscribe($imapConnection, $folder); } } @@ -335,8 +333,11 @@ for ($i = 0;$i < count($boxes); $i++) { $line = "$prefix"; /* Add the folder name and link. */ + if (! isset($color[15])) { + $color[15] = $color[6]; + } if (in_array('noselect', $boxes[$i]['flags'])) { - $line .= ""; + $line .= ""; if (ereg("^( *)([^ ]*)", $mailbox, $regs)) { $mailbox = str_replace(' ','',$mailbox); $line .= str_replace(' ', ' ', $mailbox);