From: Jonathan Druart <jonathan.dru...@bugs.koha-community.org>

Signed-off-by: Dobrica Pavlinusic <dpav...@rot13.org>
---
 members/moremember.pl | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/members/moremember.pl b/members/moremember.pl
index 51012ed..b3e8d76 100755
--- a/members/moremember.pl
+++ b/members/moremember.pl
@@ -242,7 +242,9 @@ my $overdues_exist = 0;
 my $totalprice = 0;
 
 # Calculate and display patron's age
-$template->param( age => Koha::Patron->new({ dateofbirth => 
$data->{dateofbirth} })->get_age );
+if ( $data->{dateofbirth} ) {
+    $template->param( age => Koha::Patron->new({ dateofbirth => 
$data->{dateofbirth} })->get_age );
+}
 
 ### 
###############################################################################
 # BUILD HTML
-- 
2.1.4

_______________________________________________
Koha-patches mailing list
Koha-patches@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to