From eacc1e9cf51f87e12832511e0587b3340b561dde Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 9 Jan 2018 10:33:25 -0300 Subject: [PATCH] Bug 19936: Remove warnings from tests C4::Members did not "use warnings;" --- Koha/Patron.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index 1ada117829..4d607c1ddd 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -861,8 +861,8 @@ sub generate_userid { my $userid; my $offset = 0; my $patron = Koha::Patron->new; - my $firstname = $self->firstname; - my $surname = $self->surname; + my $firstname = $self->firstname // q{}; + my $surname = $self->surname // q{}; #The script will "do" the following code and increment the $offset until the generated userid is unique do { $firstname =~ s/[[:digit:][:space:][:blank:][:punct:][:cntrl:]]//g; -- 2.11.0