Koha/catalogue
Matt Blenkinsop e0c09d230c
Bug 33896: Check whether index is defined before string match
This patch checks that $indexes[$i] is defined before testing whether the string matches to remove the logged warning when searching

Test plan:
1) In the intranet, search the catalog from the top search bar
2) Check plack-intranet-error.log
3) There should be a warning "[WARN] Use of uninitialized value within @indexes in string eq"
4) Apply patch
5) restart_all and then re-try the search
6) The warning should no longer appear

Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-06-23 10:01:03 -03:00
..
detail.pl Bug 33167: Cleanup staff detail page 2023-05-12 11:22:45 -03:00
export.pl
getitem-ajax.pl
image.pl
imageviewer.pl Bug 31310: Remove GetItemsInfo from catalogue/imageviewer 2022-08-16 09:22:47 -03:00
ISBDdetail.pl
issuehistory.pl
item-export.pl
itemsearch.pl Bug 20256: Use new methods 2023-02-02 11:59:26 -03:00
labeledMARCdetail.pl
MARCdetail.pl Bug 31535: Fix warning - uninitialized value in string ne (MARCdetail.pl) 2022-09-12 16:16:28 -03:00
moredetail.pl Bug 33788: Limit the number of old issues rows returned 2023-05-30 08:27:55 -03:00
search-history.pl
search.pl Bug 33896: Check whether index is defined before string match 2023-06-23 10:01:03 -03:00
showelastic.pl Bug 18829: (QA follow-up) Replace forbidden indirect syntax 2023-04-17 09:39:42 -03:00
showmarc.pl Bug 30779: Remove _update_import_record_marc and update tests 2022-08-18 09:02:04 -03:00
stockrotation.pl
updateitem.pl