From bd3a9c72c40166c31e9c9eb8d483b0621a0f1ec2 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 --- members/memberentry.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/memberentry.pl b/members/memberentry.pl index 21252828ed..a4c1e9eeef 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