[Koha-bugs] [Bug 17986] Perl dependency evaluation incorrect

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 25 11:36:24 CET 2017


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

--- Comment #7 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
I am stuck, I tried to provide tests to highlight the problem, but I do not
manage to make them fail.
There is something wrong in the code:
It seems that the same code is duplicated:
  if ( $params{module} ) {
    do something;
  } else {
    do almost the same thing;
  }

Except that in the first block, $_ is used, but is always undefined (not in a
loop).
This code sounds ugly and buggy, it may be good to fix it.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list