]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 6 Jun 2022 15:31:49 +0000 (15:31 +0000)
commit36cbd69763dc8e8162781ee22bc7d5e234443b9d
treea7bc180506cf683cdd8a444fa454fdc7d0b01402
parentcfea4cacfaa644269a772287d3780ecc4900d509
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>
(cherry picked from commit 44e126bcc7fae369e13c533eea79f00ef41f2ff1)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
C4/Koha.pm