Bug 30446: (follow-up) Remove warning

This patch removes a trivial warning caused by a parameter being
compared to a literal but not being defined. Doing a

$ git grep GetTagsLabels

shows the change is safe as the function is always called with a value
of either 0 or 1.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Tomas Cohen Arazi 2022-04-20 09:17:03 -03:00 committed by Fridolin Somers
parent 24db0479e6
commit 4c8987b64e
1 changed files with 1 additions and 1 deletions

View File

@ -465,7 +465,7 @@ sub GetTagsLabels {
my $dbh=C4::Context->dbh;
$authtypecode="" unless $authtypecode;
my $sth;
my $libfield = ($forlibrarian == 1)? 'liblibrarian' : 'libopac';
my $libfield = ($forlibrarian) ? 'liblibrarian' : 'libopac';
# check that authority exists