Merge pull request #10084 from annando/warning

Fix Warning "key() expects parameter 1 to be array, string given"
This commit is contained in:
Hypolite Petovan 2021-03-27 01:31:08 -04:00 committed by GitHub
commit 4b52da84c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;