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>
This commit is contained in:
Martin Renvoize 2023-03-10 16:33:44 +00:00 committed by Tomas Cohen Arazi
parent f716438555
commit 4e8d76d6f9
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
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 ) {