]> git.mxchange.org Git - friendica.git/blobdiff - mod/salmon.php
Indentation
[friendica.git] / mod / salmon.php
index 1932d3ba4175599f990121a0608382562e44b90f..bc4410434bbf362c14eee893fca773ade3bb0d70 100644 (file)
@@ -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;
 
@@ -120,7 +120,7 @@ function salmon_post(App $a, $xml = '') {
        $m = Strings::base64UrlDecode($key_info[1]);
        $e = Strings::base64UrlDecode($key_info[2]);
 
-       Logger::log('key details: ' . print_r($key_info,true), Logger::DEBUG);
+       Logger::info('key details', ['info' => $key_info]);
 
        $pubkey = Crypto::meToPem($m, $e);