# Do nothing if target milestones are not in use.
unless (Bugzilla->params->{'usetargetmilestone'}) {
- return (ref $invocant) ? $invocant->default_milestone : undef;
+ return (ref $invocant) ? $invocant->default_milestone : '---';
}
$milestone = trim($milestone);
# Do nothing if target milestones are not in use.
unless (Bugzilla->params->{'usetargetmilestone'}) {
- return (ref $invocant) ? $invocant->milestone_url : undef;
+ return (ref $invocant) ? $invocant->milestone_url : '';
}
- $url = trim($url);
+ $url = trim($url || '');
return $url;
}