]> git.koha-community.org Git - koha.git/commit
Bug 15068: Get rid of warnings in members/summary-print.pl
authorMarc Véron <veron@veron.ch>
Tue, 27 Oct 2015 11:38:32 +0000 (12:38 +0100)
committerFrédéric Demians <f.demians@tamil.fr>
Sun, 29 Nov 2015 20:07:44 +0000 (21:07 +0100)
commit95d9e029c8ef612b5802c6e8951344cb0f678aaf
tree67071672c565488e5a13d340c7451a3f101c8a8a
parent780bc5ecd9be9b645b7fdccc2bcc331dd7df2081
Bug 15068: Get rid of warnings in members/summary-print.pl

This patch removes warnings when printing a summary from a member's
detail page, like:

- use of uninitialized value in sprintf
  at /usr/share/kohaclone/members/summary-print.pl line 47

- Use of uninitialized value $roadtype in concatenation (.) or string
  at /usr/share/kohaclone/members/summary-print.pl line 61

- Use of uninitialized value in addition (+)
  at /usr/share/kohaclone/members/summary-print.pl line 87

- Argument "2015-11-03 23:59:00" isn't numeric in numeric comparison
  (<=>) at /usr/share/kohaclone/members/summary-print.pl line 103

To test:
- Apply patch
- Go to a detail page with a member who has a lot of fines
- Print summary
- Verify that warnings like the ones above do no longer appear.

Signed-off-by: Frederic Demians <f.demians@tamil.fr>
  Have been able to see those warnings in Apache log file, and notice
  their disappearance after applying this patch.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit c292dde75b5e206045cef47d0be51235159a4b6d)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
members/summary-print.pl