]> git.mxchange.org Git - friendica.git/commitdiff
Log unexpected value
authorMichael <heluecht@pirati.ca>
Wed, 22 Sep 2021 03:25:01 +0000 (03:25 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 22 Sep 2021 03:25:01 +0000 (03:25 +0000)
src/Util/ParseUrl.php

index d40a0a4e911850608e74806a295a7e8f86895b02..58916495255e7385a63178920afc53653e591f68 100644 (file)
@@ -1116,6 +1116,10 @@ class ParseUrl
                }
 
                $content = JsonLD::fetchElement($jsonld, 'image', 'url', '@type', 'ImageObject');
+               if (!empty($content) && !is_string($content)) {
+                       Logger::notice('Unexpected return value for the author image', ['content' => $content]);
+               }
+
                if (!empty($content) && is_string($content)) {
                        $jsonldinfo['author_img'] = trim($content);
                }