Bug 5392 Initialize vars used in building url strings

If no failures are to be added to the to the strings for redirect
the corresponding variables are undefined causing warnings
to be logged. Initialize them so that the error log is not
being filled with trivia.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Colin Campbell 2010-11-12 07:35:47 -05:00 committed by Chris Cormack
parent 11d54188f8
commit bd93bfdbc4
1 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ my $cardnumber = $input->param("cardnumber");
my $borrowernumber = $input->param("borrowernumber");
my $exemptfine = $input->param("exemptfine") || 0;
my $override_limit = $input->param("override_limit") || 0;
my $failedrenews;
my $failedrenews = q{};
foreach my $itemno (@data) {
# check status before renewing issue
my ($renewokay,$error) = CanBookBeRenewed($borrowernumber,$itemno,$override_limit);
@ -88,7 +88,7 @@ foreach my $itemno (@data) {
$failedrenews.="&failedrenew=$itemno";
}
}
my $failedreturn;
my $failedreturn = q{};
foreach my $barcode (@barcodes) {
# check status before renewing issue
my ( $returned, $messages, $issueinformation, $borrower ) =