From 0ee54a7bc2063450eaba9cce71ec3cacde82300b Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Tue, 19 Feb 2008 08:17:40 +1300 Subject: [PATCH] BUGFIX (critical) return instead of next Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Biblio.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 26451e7d71..0340b81149 100755 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -2488,7 +2488,7 @@ sub _koha_marc_update_biblioitem_cn_sort { my $frameworkcode= shift; my ($biblioitem_tag, $biblioitem_subfield ) = GetMarcFromKohaField("biblioitems.cn_sort",$frameworkcode); - next unless $biblioitem_tag; + return unless $biblioitem_tag; my ($cn_sort) = GetClassSort($biblioitem->{'biblioitems.cn_source'}, $biblioitem->{'cn_class'}, $biblioitem->{'cn_item'} ); -- 2.39.5