]> git.koha-community.org Git - koha.git/commit
Bug 20696: Fix a few ugly "eq undef" comparisons in Search.pm
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Wed, 2 May 2018 14:13:20 +0000 (16:13 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 7 Jun 2018 06:42:50 +0000 (08:42 +0200)
commit7f120b8a2b9f57891759e515c31a85a4f3f979fd
treef956a01e29e19966ca14e0e79a7695bba057b257
parent3f3ba9caf06ab8ca5dfa32551d9a84e52ba68f5d
Bug 20696: Fix a few ugly "eq undef" comparisons in Search.pm

Comparisons like $a eq undef should normally raise a warning like:
    Use of uninitialized value in string eq at ...
But unfortunately we still suppress warnings here and there.

Test plan:
[1] Just read this patch and confirm the small changes.
[2] Git grep on "eq undef" and do not find other occurrences.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Passes test plan and QA tools. Searching works correctly.

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 66f5b793ed8e52372466122263cac0ddd84dea63)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Search.pm