Commit acfb3e5f authored by John Fiala's avatar John Fiala
Browse files

Issue #1458502 by eugene.brit:Fixing Undefined index: target in _link_sanitize()

parent feac53fd
......@@ -552,7 +552,7 @@ function _link_sanitize(&$item, $delta, &$field, $instance, &$entity) {
}
// Remove the target attribute if the default (no target) is selected.
if (empty($item['attributes']) || $item['attributes']['target'] == LINK_TARGET_DEFAULT) {
if (empty($item['attributes']) || (isset($item['attributes']['target']) && $item['attributes']['target'] == LINK_TARGET_DEFAULT)) {
unset($item['attributes']['target']);
}
......
Supports Markdown
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