Fix warning "supplied key param cannot be coerced into a public key"

This commit is contained in:
Michael 2020-12-17 07:07:54 +00:00
parent 1414d43597
commit a548e7c4be

View file

@ -544,7 +544,7 @@ class HTTPSignature
$key = self::fetchKey($sig_block['keyId'], $actor);
if (empty($key)) {
if (empty($key) || empty($key['pubkey'])) {
return false;
}