% if ( scalar( @{$opt{'part_referrals'}} ) == 0 ) {
<% mt('At least one advertising source must be created prior to adding a customer, but none have been created.') |h %> % #hack % my $createlink = qq!!; % my $createlabel = emt("To create one, see [_1]advertising source listing","XXXLINKXXX").''; % $createlabel =~ s/XXXLINKXXX/$createlink/; <% $createlabel %> % } elsif ( scalar( @{$opt{'part_referrals'}} ) == 1 ) { % } else {