Added sent_subfolders plugin, tweaked config stuff, other stuff.
[squirrelmail.git] / src / left_main.php
index a3f2dfa..f3458cf 100644 (file)
@@ -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)) {
 
 /* 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 ) {
     foreach( $autocreate as $folder ) {
-        if ($folder != '' && $folder != 'none') {
+        if (($folder != '') && ($folder != 'none')) {
             if ( !sqimap_mailbox_exists($imapConnection, $folder)) {
                 sqimap_mailbox_create($imapConnection, $folder, '');
             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);
             }
         }
                 sqimap_subscribe($imapConnection, $folder);
             }
         }