Closed (fixed)
Project:
Flexinode
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Jul 2004 at 16:27 UTC
Updated:
30 Aug 2004 at 23:20 UTC
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
Comment #1
jonbob commentedApplied. Thanks.
Comment #2
(not verified) commented