Commit d2154ac2 authored by edurenye's avatar edurenye Committed by Kingdutch

Issue #2941279 by edurenye: Undefined index 'content' in EntityAnalyser

parent 3eb14eb4
......@@ -159,7 +159,12 @@ class EntityAnalyser {
// Turn our tag render array into a key => value array.
foreach ($data as $name => $tag) {
$data[$name] = $tag['#attributes']['content'];
if (isset($tag['#attributes']['content'])) {
$data[$name] = $tag['#attributes']['content'];
}
elseif (isset($tag['#attributes']['href'])) {
$data[$name] = $tag['#attributes']['href'];
}
}
// Translate some fields that have different names between metatag module
// and the Yoast library.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment