From: Paul Poulain Date: Wed, 28 Oct 2009 16:51:56 +0000 (+0100) Subject: fixing currency.pl X-Git-Tag: v3.02.00-alpha~54^2~130 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=209b614eb1894cf86b9f1029f4dcdb4459f9f4e4;p=koha.git fixing currency.pl if active not set, mySQL complains for a missing argument --- diff --git a/admin/currency.pl b/admin/currency.pl index ecd7b91d76..644b327cf7 100755 --- a/admin/currency.pl +++ b/admin/currency.pl @@ -115,9 +115,10 @@ if ($op eq 'add_form') { WHERE currency = ? | ); $sth->execute( $input->param('rate'), - $input->param('symbol'), - $input->param('active'), - $input->param('currency'), ); + $input->param('symbol')||'', + $input->param('active')||0, + $input->param('currency'), + ); } else { @@ -126,8 +127,9 @@ if ($op eq 'add_form') { $sth->execute( $input->param('currency'), $input->param('rate'), - $input->param('symbol'), - $input->param('active'), ); + $input->param('symbol')||'', + $input->param('active')||0, + ); } # END $OP eq ADD_VALIDATE ################## DELETE_CONFIRM ##################################