From 51260a869e71cd5c474940ebda1cb0a5fc7b592b 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 --- members/memberentry.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/memberentry.pl b/members/memberentry.pl index d90fd5dd90f..a5d0d6c3fc7 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.30.2