Label is printed even if a URL field is empty; there is a bug in the code, that is fixed by this patch:

in field_url.inc add a control to check if field is empty

[?
function flexinode_field_url_format($field, $node, $brief = 0) {
$fieldname = 'flexinode_'. $field->field_id;
if ($node->$fieldname=="") return ''; // matteo added this check
$output = check_output($node->$fieldname);
return ''. $output .'';
}
?]

Hope it helps
Matteo

Comments

jonbob’s picture

Applied. Thanks.

Anonymous’s picture