From 09481c9b5afb61de968b58220eabb826c61bbb8c 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. --- 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 38dd15e4a..bcc94e38e 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 6180c4673..b5eb0e3e1 100644 --- a/functions/imap_search.php +++ b/functions/imap_search.php @@ -1,4 +1,4 @@ - \ No newline at end of file +?>