[Koha-bugs] [Bug 29898] Overdues.pm line 663, Use of uninitialized value in string eq
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Apr 21 12:51:07 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29898
--- Comment #4 from Anke <anke.bruns at gwdg.de> ---
My colleague just sent me this update to (In reply to Anke from comment #3)
> We implemented a solution, replacing line 663 in
> /usr/share/koha/lib/C4/Overdues.pm, which originally reads:
>
> if ( $branchcodes->[0] eq '' ) {
>
> by:
>
> if ( !defined ($branchcodes->[0]) || $branchcodes->[0] eq '' ) {
>
> Hope this is useful.
I just received this enhancement:
if ( @$branchcodes >= 1 && ( !defined ($branchcodes->[0]) ||
$branchcodes->[0] eq '' ) ) {
This prevents the routine from returning libraries if there are no overdue
rules.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list