From 219d375565f167a0e768cb0d19c0a8fee3140351 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Tue, 10 Apr 2012 00:50:48 +0200 Subject: [PATCH] Bug 7937: Fix warns on opac-userupdate.pl 1) opac-userupdate.pl: Use of uninitialized value $updateemailaddress in pattern match (m//) at /home/katrin/kohaclone/opac/opac-userupdate.pl line 61. Warn was created when branch has no email address. The script falls back to KohaAdminEmailAddress first and shows an error message in OPAC when there is no email address to be used. 2) opac-userupdate.pl: Use of uninitialized value in concatenation (.) or string at /home/katrin/kohaclone/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tt line 75. Warn was created when patron has no date of birth. --- .../opac-tmpl/prog/en/modules/opac-userupdate.tt | 9 ++++++++- opac/opac-userupdate.pl | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tt index b903e4d..90a39ad 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tt @@ -70,7 +70,14 @@
    -
  1. +
  2. + + [% IF ( BORROWER_INF.dateofbirth ) %] + + [% ELSE %] + + [% END %] +