Commit 62927259 authored by git's avatar git Committed by Renato Goncalves H
Browse files

Issue #2974486 by naidim: Title field assumed when it may not exist

parent 613a0521
......@@ -607,7 +607,7 @@ function _link_sanitize(&$item, $delta, &$field, $instance, &$entity) {
}
}
// Use the title defined by the user at the widget level.
elseif (drupal_strlen(trim($item['title']))) {
elseif (isset($item['title']) && drupal_strlen(trim($item['title']))) {
$title = $item['title'];
}
// Use the static title if a user-defined title is optional and a static title
......
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