Skip to content

Commit

Permalink
This should be handled by _buildMailboxQuery()
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Jul 23, 2014
1 parent fb87d9d commit bd3209d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions imp/lib/Mailbox/List.php
Original file line number Diff line number Diff line change
Expand Up @@ -404,12 +404,7 @@ protected function _buildMailbox()
$sorted = array_reverse($sorted);
}
} else {
$mbox_ob = IMP_Mailbox::get($mbox);
if ($mbox_ob->container) {
continue;
}

$res = $mbox_ob->imp_imap->search($mbox, $val, array(
$res = IMP_Mailbox::get($mbox)->imp_imap->search($mbox, $val, array(
'sort' => array($sortpref->sortby)
));
if ($sortpref->sortdir) {
Expand Down

0 comments on commit bd3209d

Please sign in to comment.