http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11587

Jonathan Druart <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #24666|0                           |1
        is obsolete|                            |
  Attachment #24667|0                           |1
        is obsolete|                            |

--- Comment #8 from Jonathan Druart <[email protected]> ---
Created attachment 24677
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=24677&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

Signed-off-by: Chris Cormack <[email protected]>

Signed-off-by: Jonathan Druart <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://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