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 +?>