From 684160816492123d6cbf90b1b596069572c7403d Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 3 May 2021 18:43:38 +0000 Subject: [PATCH] Fix fatal error because of parameter type mismatch --- 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 77611168d4..5dee4d3a29 100644 --- a/src/Util/ParseUrl.php +++ b/src/Util/ParseUrl.php @@ -711,7 +711,7 @@ class ParseUrl } if ($numeric_keys) { foreach ($jsonld as $part) { - if (!empty($part)) { + if (!empty($part) && is_array($part)) { $siteinfo = self::parseParts($siteinfo, $part); } }