From ca9690932e526d9f9233b38ab91c52753669b3df Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Thu, 2 Feb 2017 23:50:39 -0500 Subject: [PATCH] Bug 17855: Followup silence a warning when there are no imported patrons. Signed-off-by: Mark Tompsett Signed-off-by: Alex Buckley --- installer/onboarding.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/onboarding.pl b/installer/onboarding.pl index 1abc34e..49f4e84 100755 --- a/installer/onboarding.pl +++ b/installer/onboarding.pl @@ -264,7 +264,7 @@ elsif ( $step && $step == 3 ) { #Incrementing the highest existing patron cardnumber to prevent duplicate cardnumber entry - my $existing_cardnumber = $schema->resultset('Borrower')->get_column('cardnumber')->max(); + my $existing_cardnumber = $schema->resultset('Borrower')->get_column('cardnumber')->max() // 0; my $new_cardnumber = $existing_cardnumber + 1; $template->param( "newcardnumber" => $new_cardnumber ); -- 2.1.4