Skip to content

Commit

Permalink
This will always resolve to true.
Browse files Browse the repository at this point in the history
Fixes fatal "non-object" error when sent mail isn't found in the
searched mailbox.
  • Loading branch information
mrubinsk committed Mar 15, 2015
1 parent 3d35a13 commit 38e65e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion imp/lib/Dynamic/Maillog.php
Expand Up @@ -43,7 +43,8 @@ protected function _init()
$query = $log->searchQuery();

foreach ($log->searchMailboxes() as $val) {
if ($indices = $val->runSearchQuery($query)) {
$indices = $val->runSearchQuery($query);
if (count($indices)) {
list($mbox, $uid) = $indices->getSingle();
$url = IMP_Dynamic_Message::url();
$url->add($mbox->urlParams($uid));
Expand Down

0 comments on commit 38e65e1

Please sign in to comment.