Skip to content

Commit

Permalink
Fix value access.
Browse files Browse the repository at this point in the history
$from is an a list, ->bare doesn't exist at all, and searchEmail() expects a
single string.
  • Loading branch information
yunosh committed Jul 31, 2014
1 parent 4950b14 commit 2a2998f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imp/lib/Images.php
Expand Up @@ -71,7 +71,7 @@ protected function _showInlineImage(IMP_Contents $contents)
return false;
}

$res = $injector->getInstance('IMP_Contacts')->searchEmail($from->bare->addresses, array(
$res = $injector->getInstance('IMP_Contacts')->searchEmail($from[0]->bare_address, array(
'email_exact' => true
));

Expand Down

0 comments on commit 2a2998f

Please sign in to comment.