Skip to content

Commit

Permalink
Sanity checking
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Feb 27, 2014
1 parent 16a76d3 commit 36eb2ab
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions imp/lib/Mailbox.php
Expand Up @@ -1254,12 +1254,14 @@ public function fromBuids($buids)
}
$buid_list = $buids->getSingle(true);

$list_ob = $this->list_ob;
$out = new IMP_Indices();

foreach ($buid_list[1] as $buid) {
if ($resolve = $list_ob->resolveBuid($buid)) {
$out->add($resolve['m'], $resolve['u']);
if ($buid_list[1]) {
$list_ob = $this->list_ob;
foreach ($buid_list[1] as $buid) {
if ($resolve = $list_ob->resolveBuid($buid)) {
$out->add($resolve['m'], $resolve['u']);
}
}
}

Expand Down

0 comments on commit 36eb2ab

Please sign in to comment.