]> git.koha-community.org Git - koha.git/commit
Bug 35833: Silence few warnings from searching
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 18 Jan 2024 13:46:45 +0000 (14:46 +0100)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 29 Jan 2024 11:24:58 +0000 (12:24 +0100)
commitcb7921d8d03219e0a8dfb350d0029c764c47f1bd
treea8ae68ce03ee6022f1f642987b48a6c0964bb4cc
parent857d8f4d826cf513a6a4ba22a324890f7e5f2bd3
Bug 35833: Silence few warnings from searching

Resolve:
[2024/01/18 11:31:24] [WARN] Use of uninitialized value $hits in numeric eq (==) at /usr/share/koha/opac/opac-search.pl line 612.
[2024/01/18 11:31:24] [WARN] Use of uninitialized value $times in subtraction (-) at /usr/share/koha/C4/Search.pm line 1715.

Test plan:
Look for a few search expressions without results.
Check log without and with patch.

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/Search.pm
opac/opac-search.pl