Skip to content

Commit

Permalink
buids is not always available
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Nov 19, 2014
1 parent 5fcb414 commit da9fecb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion imp/lib/Ajax/Application/ShowMessage.php
Expand Up @@ -332,7 +332,9 @@ public function showMessage($args)
$result['atc_list'] = $partlist;
}

list($bmbox, $buid) = $this->_indices->buids->getSingle();
list($bmbox, $buid) = ($this->_indices instanceof IMP_Indices_Mailbox)
? $this->_indices->buids->getSingle()
: $this->_indices->getSingle();

$result['save_as'] = IMP_Contents_View::downloadUrl(
htmlspecialchars_decode($result['subject']),
Expand Down

0 comments on commit da9fecb

Please sign in to comment.