From 7ac76639c5d0fc5f738608e7bf2ccff420b2714c Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 22 Sep 2021 02:41:24 +0000 Subject: [PATCH] AVoid warning when fetching page data --- src/Util/ParseUrl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }