diff options
Diffstat (limited to 'program')
-rw-r--r-- | program/include/rcube_imap.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/program/include/rcube_imap.inc b/program/include/rcube_imap.inc index 8bbd9a2c5..859dd3183 100644 --- a/program/include/rcube_imap.inc +++ b/program/include/rcube_imap.inc @@ -320,6 +320,9 @@ class rcube_imap else $headers_cached = TRUE; + if (!is_array(a_msg_headers)) + return array(); + // sort headers by a specific col $a_headers = iil_SortHeaders($a_msg_headers, $sort_field, $sort_order); // free memory |