Merge pull request #10084 from annando/warning
Fix Warning "key() expects parameter 1 to be array, string given"
This commit is contained in:
commit
4b52da84c3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue