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 38dd15e4ae9014ad08fa17ad9af7f8e4ccf5dc87..bcc94e38e899252a67548c64e7e4aacd674d9606 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 6180c46732e0988c09246638d85115cb3757af6c..b5eb0e3e18137bf178ba51f8a8d47aac27e79627 100644 --- a/functions/imap_search.php +++ b/functions/imap_search.php @@ -1,4 +1,4 @@ - \ No newline at end of file +?>