From 01ca725d04e2723a27d08f4031c4e046569cc5c3 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;" Signed-off-by: Josef Moravec Signed-off-by: Katrin Fischer --- Koha/Patron.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index 8a37d2aab4..7458bc5671 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -917,8 +917,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.14.1