re-indent + little bugfix : '' instead of undef.
This commit is contained in:
parent
4728830e34
commit
55120ddf4e
|
|
@ -200,18 +200,14 @@ if ($op eq 'add_form') {
|
|||
";
|
||||
my $sth=$dbh->prepare($query);
|
||||
$sth->execute(
|
||||
$input->param('itemtype'),
|
||||
$input->param('description'),
|
||||
$input->param('renewalsallowed'),
|
||||
$input->param('rentalcharge'),
|
||||
$input->param('notforloan') ? 1 : 0,
|
||||
$input->param('image') eq 'removeImage'
|
||||
? undef
|
||||
: $input->param('image') eq 'remoteImage'
|
||||
? $input->param('remoteImage')
|
||||
: $input->param('image'),
|
||||
$input->param('summary'),
|
||||
);
|
||||
$input->param('itemtype'),
|
||||
$input->param('description'),
|
||||
$input->param('renewalsallowed'),
|
||||
$input->param('rentalcharge'),
|
||||
$input->param('notforloan') ? 1 : 0,
|
||||
$input->param('image') eq 'removeImage' ? '' : $input->param('image') eq 'remoteImage' ? $input->param('remoteImage') : $input->param('image'),
|
||||
$input->param('summary'),
|
||||
);
|
||||
}
|
||||
|
||||
print "Content-Type: text/html\n\n<META HTTP-EQUIV=Refresh CONTENT=\"0; URL=itemtypes.pl\"></html>";
|
||||
|
|
|
|||
Loading…
Reference in New Issue