summaryrefslogtreecommitdiff
path: root/httemplate/view/cust_bill-logo.cgi
diff options
context:
space:
mode:
authorivan <ivan>2005-10-06 23:07:27 +0000
committerivan <ivan>2005-10-06 23:07:27 +0000
commit0247cadb339f3aee8dad1fc6bb319a2d3b8cb448 (patch)
tree223f910801bbcd3cf7b3daf92a37fb5774bfd294 /httemplate/view/cust_bill-logo.cgi
parentb3010f33ef9485271d34e43a8ed6f30094451397 (diff)
use default logo if the agent-specific one isn't found
Diffstat (limited to 'httemplate/view/cust_bill-logo.cgi')
-rwxr-xr-xhttemplate/view/cust_bill-logo.cgi7
1 files changed, 5 insertions, 2 deletions
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;