Fix call to a member function get_compressed() on a non-object

pull/217/head
Aleksander Machniak 10 years ago
parent f50f49a0f2
commit c489cc1479

@ -1384,7 +1384,7 @@ class rcube_imap extends rcube_storage
public function index_direct($folder, $sort_field = null, $sort_order = null, $search = null) public function index_direct($folder, $sort_field = null, $sort_order = null, $search = null)
{ {
if (!empty($search)) { if (!empty($search)) {
$search = $this->search_set->get_compressed(); $search = $search->get_compressed();
} }
// use message index sort as default sorting // use message index sort as default sorting

Loading…
Cancel
Save