Bug 35833: Fix warnings from C4/Koha
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 18 Jan 2024 13:39:55 +0000 (14:39 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 1 Feb 2024 14:06:57 +0000 (15:06 +0100)
commit5ab93391a37390b818c3b391915bdedc3f07fe3e
tree45085329406329a041210a26dd85cdb54361d1ae
parentc3134a26f98d2ccef78c570e707fcf8d14088eb1
Bug 35833: Fix warnings from C4/Koha

[2024/01/18 11:52:40] [WARN] Argument " " isn't numeric in numeric eq (==) at /usr/share/koha/C4/Koha.pm line 600.
[2024/01/18 11:52:40] [WARN] Argument " " isn't numeric in numeric eq (==) at /usr/share/koha/C4/Koha.pm line 659.

Note: According to the code in MARC::Field the indicator returned cannot be undef. So we do not return new
uninitialized warnings.

Test plan:
Check your log before and after patch.
Possibly you may need to create a record with spaces as field indicators.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 857d8f4d826cf513a6a4ba22a324890f7e5f2bd3)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Koha.pm