Browse Source

re-indent + little bugfix : '' instead of undef.

3.0.x
toins 15 years ago
parent
commit
55120ddf4e
  1. 20
      admin/itemtypes.pl

20
admin/itemtypes.pl

@ -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…
Cancel
Save