From 6e189ce2d5f55a924286a193bdaa1978d82d5ea3 Mon Sep 17 00:00:00 2001 From: philippe_mingo Date: Fri, 12 Oct 2001 10:50:19 +0000 Subject: [PATCH] Fixed imap search bug. Updated Spanish strings. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1565 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_messages.php | 1 + functions/imap_search.php | 34 +++++++++++++++++++--------------- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/functions/imap_messages.php b/functions/imap_messages.php index 38dd15e4..bcc94e38 100755 --- a/functions/imap_messages.php +++ b/functions/imap_messages.php @@ -67,6 +67,7 @@ // Sort the message list and crunch to be as small as possible // (overflow could happen, so make it small if possible) function sqimap_message_list_squisher($messages_array) { + if( !is_array( $messages_array ) ) return; sort($messages_array, SORT_NUMERIC); $msgs_str = ''; while ($messages_array) { diff --git a/functions/imap_search.php b/functions/imap_search.php index 6180c467..b5eb0e3e 100644 --- a/functions/imap_search.php +++ b/functions/imap_search.php @@ -1,4 +1,4 @@ - \ No newline at end of file +?> -- 2.25.1