Skip to content

Commit

Permalink
fix pgp key lookup if more than one key is found
Browse files Browse the repository at this point in the history
reset() *returns* the first element, so let's actually do what the
comment above says.
  • Loading branch information
duritong committed Sep 22, 2017
1 parent 53c995d commit 067298f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imp/lib/Pgp.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ public function getPublicKey($address, $options = array())
* the array. There is no way of knowing which is the "preferred" key,
* if the keys are different. */
if (is_array($result)) {
reset($result);
$result = reset($result);
}

return $result;
Expand Down

0 comments on commit 067298f

Please sign in to comment.