From 4e8d76d6f98d0f28d6f1804a1435da2f4c229441 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 10 Mar 2023 16:33:44 +0000 Subject: [PATCH] Bug 30920: (follow-up) Cleanup warning from C4::Biblio::GetAuthorisedValueDesc We simply return early and empty if $value is not passed Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi --- C4/Biblio.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 96f494d899..e90eb117b7 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -1375,6 +1375,8 @@ descriptions rather than normal ones when they exist. sub GetAuthorisedValueDesc { my ( $tag, $subfield, $value, $framework, $tagslib, $category, $opac ) = @_; + return q{} unless defined($value); + my $cache = Koha::Caches->get_instance(); my $cache_key; if ( !$category ) { -- 2.39.5