https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35792

            Bug ID: 35792
           Summary: Quiet warning: Use of uninitialized value $sub6
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: trivial
          Priority: P5 - low
         Component: Searching - Elasticsearch
          Assignee: [email protected]
          Reporter: [email protected]

When reindexing Elasticsearch, this warning can sometimes be seen: 

Use of uninitialized value $sub6 in pattern match (m//) at
/usr/share/koha/lib/Koha/SearchEngine/Elasticsearch.pm line 601.

This warning is from 23.05.06. In master it looks like the relevant line is now
line 603. I think it could be silenced by changing the line from this: 

if ($sub6 =~ /^(...)-\d+/) {

to this: 

if ($sub6 && $sub6 =~ /^(...)-\d+/) {

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to