fixing currency.pl
if active not set, mySQL complains for a missing argument
This commit is contained in:
parent
ad1e018667
commit
209b614eb1
1 changed files with 7 additions and 5 deletions
|
@ -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 ##################################
|
||||
|
|
Loading…
Reference in a new issue