Online Renewal - Fix msg declaration error
authorTerran McCanna <tmccanna@georgialibraries.org>
Fri, 2 Sep 2022 19:28:25 +0000 (15:28 -0400)
committerTerran McCanna <tmccanna@georgialibraries.org>
Fri, 2 Sep 2022 19:28:25 +0000 (15:28 -0400)
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm

index 53c63ac..00637e2 100644 (file)
@@ -684,13 +684,14 @@ sub save_user {
     $resp = {textcode => 'UNKNOWN_ERROR'} unless $resp;
 
     if ($U->is_event($resp)) {
+        my $msg = '';
 
     if ($update_type == 'register') {
-        my $msg = "Error creating user account: " . $resp->{textcode};
+        $msg = "Error creating user account: " . $resp->{textcode};
         $logger->error("ECARD: $msg");
         $ctx->{response}->{status} = 'CREATE_ERR';  
  } else {
-        my $msg = "Error updating user account: " . $resp->{textcode};
+        $msg = "Error updating user account: " . $resp->{textcode};
         $logger->error("E-RENEW: $msg"); 
         $ctx->{response}->{status} = 'UPDATE_ERR'; # Does this work?
     }