summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2001-08-13 23:15:35 +0000
committerivan <ivan>2001-08-13 23:15:35 +0000
commitcad8a048ce2d89814d1d3b0783310191bc76684e (patch)
treee54da9c70b1d232e9a5919dd0c2eb7453c0d8fa6
parent092cdf2ba5fbd1c94305688dd7f7821d4dbf06d3 (diff)
don't display empty comment box
-rwxr-xr-xhttemplate/view/cust_main.cgi6
1 files changed, 4 insertions, 2 deletions
diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi
index 8b6fb0c..088e2bb 100755
--- a/httemplate/view/cust_main.cgi
+++ b/httemplate/view/cust_main.cgi
@@ -1,5 +1,5 @@
<%
-#<!-- $Id: cust_main.cgi,v 1.3 2001-08-11 05:52:56 ivan Exp $ -->
+#<!-- $Id: cust_main.cgi,v 1.4 2001-08-13 23:15:35 ivan Exp $ -->
use strict;
use vars qw ( $cgi $query $custnum $cust_main $hashref $agent $referral
@@ -210,7 +210,9 @@ print '<BR>';
print '</TD></TR></TABLE>';
-if ( defined $cust_main->dbdef_table->column('comments') ) {
+if ( defined $cust_main->dbdef_table->column('comments')
+ && $cust_main->comments )
+{
print "<BR>Comments", &ntable("#cccccc"), "<TR><TD>",
&ntable("#cccccc",2),
'<TR><TD BGCOLOR="#ffffff"><PRE>', $cust_main->comments,