Warning removal
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 12 Nov 2001 17:26:50 +0000 (17:26 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 12 Nov 2001 17:26:50 +0000 (17:26 +0000)
80 character word wrap

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1743 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/right_main.php

index d63a634..9a83ade 100644 (file)
@@ -45,6 +45,9 @@
         $mailbox = 'INBOX';
         $startMessage = 1;
     }
+    
+    if (! isset($startMessage) || $startMessage == '')
+       $startMessage = 1;
 
     /* compensate for the UW vulnerability. */
     if ($imap_server_type == 'uw' && (strstr($mailbox, '../') !== false ||
 
         $numMessages = sqimap_get_num_messages ($imapConnection, $mailbox);
 
-        showMessagesForMailbox($imapConnection, $mailbox, $numMessages, $startMessage, $sort, $color, $show_num, $use_mailbox_cache);
+        showMessagesForMailbox($imapConnection, $mailbox, $numMessages, 
+          $startMessage, $sort, $color, $show_num, $use_mailbox_cache);
 
         if (session_is_registered('msgs') && isset($msgs)) {
             session_register('msgs');