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