]> git.koha-community.org Git - koha.git/commit
Bug 29883: avoid uninitialized value warn in GetAuthorisedValues sub
authorPetro Vashchuk <stalkernoid@gmail.com>
Fri, 14 Jan 2022 09:57:39 +0000 (11:57 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 1 Jun 2022 16:40:24 +0000 (13:40 -0300)
commit44e126bcc7fae369e13c533eea79f00ef41f2ff1
tree8609003bc45d5494b2b51a69570184c120e2553f
parent3b431117e4e20e15f48cfa3c5dca5c228b96b4af
Bug 29883: avoid uninitialized value warn in GetAuthorisedValues sub

GetAuthorisedValues is defined with optional parameter $category but it
is instantly interpolated without preventing "Use of uninitialized value
$category in concatenation (.) or string at .../C4/Koha.pm line 491."
warning.
As category param is optional, we can avoid throwing that warn as it is
something that can happen and is not an actual error:
C<$category> returns authorized values for just one category (optional).

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Koha.pm