]> git.mxchange.org Git - friendica.git/commitdiff
AVoid warning when fetching page data
authorMichael <heluecht@pirati.ca>
Wed, 22 Sep 2021 02:41:24 +0000 (02:41 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 22 Sep 2021 02:41:24 +0000 (02:41 +0000)
src/Util/ParseUrl.php

index 391b96767ee3df0ca0f7750c952883d0d7313f62..d40a0a4e911850608e74806a295a7e8f86895b02 100644 (file)
@@ -1116,7 +1116,7 @@ class ParseUrl
                }
 
                $content = JsonLD::fetchElement($jsonld, 'image', 'url', '@type', 'ImageObject');
-               if (!empty($content)) {
+               if (!empty($content) && is_string($content)) {
                        $jsonldinfo['author_img'] = trim($content);
                }