[Koha-bugs] [Bug 11587] IsSuperLibrarian generates warnings
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jan 21 06:51:20 CET 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11587
--- Comment #3 from M. Tompsett <mtompset at hotmail.com> ---
Created attachment 24589
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=24589&action=edit
Bug 11587 - IsSuperLibrarian generates warnings
This corrects line 1250 of C4/Context.pm to be:
return ($userenv->{flags}//0) % 2;
And thus avoids an uninitialized value used in the modulus.
TEST PLAN
---------
1) Apply the first patch (to update t/Context.t)
2) prove -v t/Context.t
-- This should fail tests 7 and 8
3) Apply this patch (to fix C4/Context.pm)
4) prove -v t/Context.t
-- All tests should succeed
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list