From 9622723b775af890589b9d0ae98e03864d4b01ba Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Mon, 29 Aug 2022 12:42:54 -0400 Subject: [PATCH] declare the variable, and update it if needed Signed-off-by: Chris Sharp --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm index bfe92e711e..69db0767a3 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm @@ -19,14 +19,12 @@ my $U = 'OpenILS::Application::AppUtils'; # Do the subroutines have access to this variable??? my $self = shift; my $path = $self->apache->path_info; +my $update_type = 'register'; if ($path =~ m|opac/erenew/submit|) { my $update_type = 'renew'; -} else { - my $update_type = 'register'; } - # Create different api_fields array if registration or renewal if ($update_type == 'renew') { my @api_fields = ( -- 2.11.0