Fix Warning "key() expects parameter 1 to be array, string given"

This commit is contained in:
Michael 2021-03-27 05:20:55 +00:00
parent 8adb0825a6
commit c77f039f7a
1 changed files with 1 additions and 1 deletions

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;