From 70ac0ea882aeffcf25fb0b7e401e8539be7ac1b9 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Sat, 21 Dec 2024 12:58:35 +0000 Subject: [PATCH] Bug 11530: Fix warning of undefined value We always check the return of UpdateTotalIssues, we shouldn't let it return null Signed-off-by: David Nind --- C4/Biblio.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 6f36813c98..1018644c77 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -3075,7 +3075,7 @@ sub UpdateTotalIssues { my $biblio = Koha::Biblios->find($biblionumber); unless ($biblio) { carp "UpdateTotalIssues could not get biblio"; - return; + return -1; } my $record; -- 2.39.5