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 <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 4e8d76d6f9)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
This commit is contained in:
Martin Renvoize 2023-03-10 16:33:44 +00:00 committed by Matt Blenkinsop
parent b6ecbde0a7
commit 83aa56e89c
1 changed files with 2 additions and 0 deletions

View File

@ -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 ) {