]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 1 Feb 2024 14:06:57 +0000 (15:06 +0100)
commit89db37bd91424a497c945fc63b683f82dcc81b42
tree9af88211b0710c0d2c58fe2226006fd0ad93a57a
parent5ab93391a37390b818c3b391915bdedc3f07fe3e
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>
(cherry picked from commit cb7921d8d03219e0a8dfb350d0029c764c47f1bd)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Search.pm
opac/opac-search.pl