From 319216f7d14d43f3e80af0a0cd081e8344ce5d30 Mon Sep 17 00:00:00 2001 From: Emmi Takkinen Date: Fri, 29 Sep 2023 15:19:36 +0300 Subject: [PATCH] Bug 12133: Fix QA issue Signed-off-by: David Nind Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- members/memberentry.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/memberentry.pl b/members/memberentry.pl index d90fd5dd90..a5d0d6c3fc 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -120,7 +120,7 @@ foreach my $new_guarantor_id (@new_guarantor_ids) { push @guarantors, $new_guarantor; } -my @existing_guarantors = $patron->guarantor_relationships()->guarantors->as_list unless !$patron; +my @existing_guarantors = $patron ? $patron->guarantor_relationships()->guarantors->as_list : (); push @guarantors, @existing_guarantors; ## Deal with debarments -- 2.39.5