summaryrefslogtreecommitdiff
path: root/httemplate/view/cust_bill-logo.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/view/cust_bill-logo.cgi')
-rwxr-xr-xhttemplate/view/cust_bill-logo.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/view/cust_bill-logo.cgi b/httemplate/view/cust_bill-logo.cgi
index 50812ea10..a1c9ddcf6 100755
--- a/httemplate/view/cust_bill-logo.cgi
+++ b/httemplate/view/cust_bill-logo.cgi
@@ -3,10 +3,10 @@
my($query) = $cgi->keywords;
$query =~ /^([^\.\/]*)$/;
my $templatename = $1;
-$templatename = "_$templatename" if $templatename;
+$templatename = "_$templatename"
+ if $templatename && $conf->exists("${logo}_$templatename.png");
my $conf = new FS::Conf;
-http_header('Content-Type' => 'image/png' );
http_header('Content-Type' => 'image/png' );
%><%= $conf->config_binary("logo$templatename.png") %>