From: Michael Date: Wed, 22 Sep 2021 02:41:24 +0000 (+0000) Subject: AVoid warning when fetching page data X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7ac76639c5d0fc5f738608e7bf2ccff420b2714c;p=friendica.git AVoid warning when fetching page data --- diff --git a/src/Util/ParseUrl.php b/src/Util/ParseUrl.php index 391b96767e..d40a0a4e91 100644 --- a/src/Util/ParseUrl.php +++ b/src/Util/ParseUrl.php @@ -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); }