From 1afdb0e53c7090d4ea22940661e5bf4023d9dbf4 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 7d95bd75c9..c53d0c6d77 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -764,8 +764,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