From 12af392c05eda44e3fa360e72b0f17abf922c23e 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 --- C4/Biblio.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 6f36813c986..1018644c779 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