fix invoice uplaoding in light of database config where you absolutely need ->set_bin...
authorivan <ivan>
Thu, 4 Sep 2008 02:44:26 +0000 (02:44 +0000)
committerivan <ivan>
Thu, 4 Sep 2008 02:44:26 +0000 (02:44 +0000)
httemplate/edit/process/invoice_logo.html

index 757fa94..524d325 100644 (file)
@@ -18,7 +18,7 @@ $cgi->param('preview_session') =~ /^(\w*)$/ or die "illegal preview_session";
 my $session = $1;
 my $data = decode_base64( $curuser->option("logo_preview$session") );
 
-$conf->set("logo$name.$type", $data);
+$conf->set_binary("logo$name.$type", $data);
 
 $cgi->redirect(popurl(3). "edit/invoice_logo.html?type=$type;name=$name;msg=Logo%20changed");