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)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 29 Jan 2024 11:24:58 +0000 (12:24 +0100)
commit857d8f4d826cf513a6a4ba22a324890f7e5f2bd3
tree04284dcba8e70dd96777142d736a231c702c02ba
parent806ef1899e96037f3f69195e9e6ab6e72cc40301
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>
C4/Koha.pm