From: ivan Date: Sun, 6 Jul 2003 18:59:04 +0000 (+0000) Subject: don't bother displaying comments that are only whitespace/newlines X-Git-Tag: freeside_1_4_1rc5~13 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=6d1f1b8b81819fbfba216612709f116c44d2b082;p=freeside.git 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 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).