Tylerization
authorphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 6 Feb 2002 11:10:56 +0000 (11:10 +0000)
committerphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 6 Feb 2002 11:10:56 +0000 (11:10 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2373 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_search.php

index ba69165..9ae1323 100644 (file)
@@ -174,6 +174,12 @@ function sqimap_search($imapConnection,$search_where,$search_what,$mailbox,$colo
             $msg = ''; 
         }
         if ($search_all != 'all') {
+           if ( !isset( $start_msg ) ) {
+               $start_msg =0;
+           }
+           if ( !isset( $sort ) ) {
+                $sort = 0;
+           }
             mail_message_listing_beginning( $imapConnection,
                 "move_messages.php?msg=$msg&mailbox=$urlMailbox&pos=$pos&where=" . urlencode($search_where) . "&what=".urlencode($search_what),
             $mailbox,