[Koha-bugs] [Bug 10728] subscription-renew generates unnecessary warnings in logs

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Aug 14 16:55:05 CEST 2013


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

Galen Charlton <gmcharlt at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #20335|0                           |1
        is obsolete|                            |

--- Comment #2 from Galen Charlton <gmcharlt at gmail.com> ---
Created attachment 20337
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=20337&action=edit
Bug 10728: fix log noise generated by subscription-renew.pl

Error log is showing warnings because mode is undefined
and we are doing string comparisons on it.

Set it to a default value (we were already assigning it a variable
which we were not using) and use the the result in the comparison

To test, after applying the patch:

[1] Use the renew link from the subscription detail page to renew
    a subscription.
[2] Verifying that doing this did not add a warning containing
    'subscription-renew.pl: Use of uninitialized value $mode in string eq '
    to the Apache error log.

Signed-off-by: Galen Charlton <gmc at esilibrary.com>

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


More information about the Koha-bugs mailing list