From 6d1f1b8b81819fbfba216612709f116c44d2b082 Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 6 Jul 2003 18:59:04 +0000 Subject: [PATCH] don't bother displaying comments that are only whitespace/newlines --- httemplate/view/cust_main.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi index 01ad57373..3b6fc9adf 100755 --- a/httemplate/view/cust_main.cgi +++ b/httemplate/view/cust_main.cgi @@ -277,7 +277,7 @@ if ( $conf->config('payby-default') ne 'HIDE' ) { print ''; if ( defined $cust_main->dbdef_table->column('comments') - && $cust_main->comments ) + && $cust_main->comments =~ /[^\s\n\r]/ ) { print "
Comments". &ntable("#cccccc"). "". &ntable("#cccccc",2). -- 2.20.1