From 4e02c347b63ab1be30e402f2224f74b1cd1e6ccf Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 28 Aug 2022 04:14:39 +0000 Subject: [PATCH] Handle array --- src/Util/ParseUrl.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Util/ParseUrl.php b/src/Util/ParseUrl.php index d0b168278..02ef6be58 100644 --- a/src/Util/ParseUrl.php +++ b/src/Util/ParseUrl.php @@ -1131,6 +1131,8 @@ class ParseUrl $content = JsonLD::fetchElement($jsonld, 'logo', 'url', '@type', 'ImageObject'); if (!empty($content) && is_string($content)) { $jsonldinfo['publisher_img'] = trim($content); + } elseif (!empty($content) && is_array($content)) { + $jsonldinfo['publisher_img'] = trim($content[0]); } $content = JsonLD::fetchElement($jsonld, 'brand', 'name', '@type', 'Organization');