use default logo if the agent-specific one isn't found
authorivan <ivan>
Thu, 6 Oct 2005 23:07:27 +0000 (23:07 +0000)
committerivan <ivan>
Thu, 6 Oct 2005 23:07:27 +0000 (23:07 +0000)
httemplate/view/cust_bill-logo.cgi

index a1c9ddc..96471ff 100755 (executable)
@@ -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;