From: Michael Date: Sat, 27 Mar 2021 05:20:55 +0000 (+0000) Subject: Fix Warning "key() expects parameter 1 to be array, string given" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c77f039f7a0c29f788c634bfc1cab756e9b82e3e;p=friendica.git Fix Warning "key() expects parameter 1 to be array, string given" --- 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;