- my $ahref =
- '<A HREF="'.
- FS::TicketSystem->href_customer_tickets($custnum,$priority).
- '">';
- print "<TR><TD ALIGN=right><FONT SIZE=-1>$ahref".
- FS::TicketSystem->num_customer_tickets($custnum,$priority).
- "</A></FONT></TD>".
+
+ my $num =
+ FS::TicketSystem->num_customer_tickets($custnum,$priority);
+ my $ahref = '';
+ $ahref= '<A HREF="'.
+ FS::TicketSystem->href_customer_tickets($custnum,$priority).
+ '">'
+ if $num;
+
+ print '<TR>'.
+ " <TD ALIGN=right><FONT SIZE=-1>$ahref$num</A></FONT></TD>".