re-indent + little bugfix : '' instead of undef.
authortoins <toins>
Fri, 8 Jun 2007 09:42:18 +0000 (09:42 +0000)
committertoins <toins>
Fri, 8 Jun 2007 09:42:18 +0000 (09:42 +0000)
admin/itemtypes.pl

index c81a766..fee52bd 100755 (executable)
@@ -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>";