From: Hypolite Petovan Date: Sat, 11 Jul 2020 13:16:05 +0000 (-0400) Subject: Add default value for potentially missing keyhash property in mod/salmon X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=01911d9fc65fd2dde4f906d6fd5f547312051bd9;p=friendica.git Add default value for potentially missing keyhash property in mod/salmon --- diff --git a/mod/salmon.php b/mod/salmon.php index ea5c334c08..bc4410434b 100644 --- a/mod/salmon.php +++ b/mod/salmon.php @@ -79,7 +79,7 @@ function salmon_post(App $a, $xml = '') { // stash away some other stuff for later $type = $base->data[0]->attributes()->type[0]; - $keyhash = $base->sig[0]->attributes()->keyhash[0]; + $keyhash = $base->sig[0]->attributes()->keyhash[0] ?? ''; $encoding = $base->encoding; $alg = $base->alg;