From c77f039f7a0c29f788c634bfc1cab756e9b82e3e Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 27 Mar 2021 05:20:55 +0000 Subject: [PATCH] Fix Warning "key() expects parameter 1 to be array, string given" --- 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 1810293b71..7c762cea42 100644 --- a/src/Util/ParseUrl.php +++ b/src/Util/ParseUrl.php @@ -942,7 +942,7 @@ class ParseUrl $siteinfo['keywords'][] = trim($keyword); } } - } else { + } elseif (!empty($jsonld['keywords'])) { $content = JsonLD::fetchElementArray($jsonld, 'keywords'); if (!empty($content) && is_array($content)) { $jsonldinfo['keywords'] = $content;