Commit 45ecc18e authored by vinmassaro's avatar vinmassaro Committed by John Fiala
Browse files

Issue #1483494 by vinmassaro, cord1: Notice: Undefined index: url in...

Issue #1483494 by vinmassaro, cord1: Notice: Undefined index: url in _link_process() (line 345 of ../link.module).
parent 85ab462a
......@@ -374,7 +374,9 @@ function _link_load($field, $item, $instance) {
*/
function _link_process(&$item, $delta = 0, $field, $entity) {
// Trim whitespace from URL.
$item['url'] = trim($item['url']);
if (!empty($item['url'])) {
$item['url'] = trim($item['url']);
}
// If no attributes are set then make sure $item['attributes'] is an empty
// array, so $field['attributes'] can override it.
......
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