https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35263
--- Comment #12 from Pedro Amorim <[email protected]> --- Created attachment 158588 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=158588&action=edit Bug 35263: QA follow-up: Update code Thank you Jonathan. I first tried with '||' but it would fallback to 1 for either undef or 0 (we want the first case, but not the second). But using '//' instead, it only falls back to 1 if undef, and not when 0. Today I learned between '||' and '//'! Thanks! From perldoc.perl.org (relating to '//'): 'In fact, it's exactly the same as ||, except that it tests the left hand side's definedness instead of its truth.' -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ 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/
