From 55120ddf4e2faa7e8679b796d1f40cccb06b130f Mon Sep 17 00:00:00 2001 From: toins Date: Fri, 8 Jun 2007 09:42:18 +0000 Subject: [PATCH] re-indent + little bugfix : '' instead of undef. --- admin/itemtypes.pl | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/admin/itemtypes.pl b/admin/itemtypes.pl index c81a766379..fee52bd388 100755 --- a/admin/itemtypes.pl +++ b/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"; -- 2.39.5