From: ivan Date: Sun, 6 Jul 2003 18:58:57 +0000 (+0000) Subject: don't bother displaying comments that are only whitespace/newlines X-Git-Tag: freeside_1_5_0pre3~10 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=a73084513b067a4d85d272970c43fba5d485b920 don't bother displaying comments that are only whitespace/newlines --- diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi index 4fe60fe79..c36c9e265 100755 --- a/httemplate/view/cust_main.cgi +++ b/httemplate/view/cust_main.cgi @@ -290,7 +290,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).