Bug 6562: Silence runtime error in reserve/request.pl
authorColin Campbell <colin.campbell@ptfs-europe.com>
Mon, 4 Jul 2011 15:20:59 +0000 (16:20 +0100)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 25 Aug 2011 22:34:48 +0000 (10:34 +1200)
Not defining action just causes logging of noisy
runtime warnings.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
reserve/request.pl

index 79ff6b5..0c952b4 100755 (executable)
@@ -93,6 +93,7 @@ my $messages;
 
 my $date = C4::Dates->today('iso');
 my $action = $input->param('action');
+$action ||= q{};
 
 if ( $action eq 'move' ) {
   my $where = $input->param('where');