From 01911d9fc65fd2dde4f906d6fd5f547312051bd9 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 11 Jul 2020 09:16:05 -0400 Subject: [PATCH] Add default value for potentially missing keyhash property in mod/salmon --- mod/salmon.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/salmon.php b/mod/salmon.php index ea5c334c0..bc4410434 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;