From: ivan Date: Thu, 6 Oct 2005 23:07:27 +0000 (+0000) Subject: use default logo if the agent-specific one isn't found X-Git-Tag: SQL_LEDGER_2_4_4~1^2~143 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=0247cadb339f3aee8dad1fc6bb319a2d3b8cb448;p=freeside.git use default logo if the agent-specific one isn't found --- diff --git a/httemplate/view/cust_bill-logo.cgi b/httemplate/view/cust_bill-logo.cgi index a1c9ddcf6..96471ffc6 100755 --- a/httemplate/view/cust_bill-logo.cgi +++ b/httemplate/view/cust_bill-logo.cgi @@ -3,8 +3,11 @@ my($query) = $cgi->keywords; $query =~ /^([^\.\/]*)$/; my $templatename = $1; -$templatename = "_$templatename" - if $templatename && $conf->exists("${logo}_$templatename.png"); +if ( $templatename && $conf->exists("${logo}_$templatename.png") ) { + $templatename = "_$templatename"; +} else { + $templatename = ''; +} my $conf = new FS::Conf;