Aleksander Machniak
2012-08-11 703be89e20dbbd5d9c66b0736824e258e526614d
Fix bug in last commit which broke searching
1 files modified
4 ■■■■ changed files
program/steps/mail/search.inc 4 ●●●● patch | view | raw | blame | history
program/steps/mail/search.inc
@@ -104,6 +104,7 @@
}
$search_str = trim($search_str);
$sort_column = rcmail_sort_column();
// execute IMAP search
if ($search_str)
@@ -121,9 +122,8 @@
// Get the headers
$result_h = $RCMAIL->storage->list_messages($mbox, 1, rcmail_sort_column(), rcmail_sort_order());
$result_h = $RCMAIL->storage->list_messages($mbox, 1, $sort_column, rcmail_sort_order());
$count = $RCMAIL->storage->count($mbox, $RCMAIL->storage->get_threading() ? 'THREADS' : 'ALL');
// Make sure we got the headers
if (!empty($result_h)) {