Bug 13757: (followup) Remove warnings
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
01506e0195
commit
bfa3f41032
1 changed files with 7 additions and 5 deletions
|
@ -401,7 +401,9 @@ sub CheckForInvalidFields {
|
|||
if ($borrower->{'B_email'}) {
|
||||
push(@invalidFields, "B_email") if (!Email::Valid->address($borrower->{'B_email'}));
|
||||
}
|
||||
if ( $borrower->{'password'} ne $borrower->{'password2'} ){
|
||||
if ( defined $borrower->{'password'}
|
||||
and $borrower->{'password'} ne $borrower->{'password2'} )
|
||||
{
|
||||
push( @invalidFields, "password_match" );
|
||||
}
|
||||
if ( $borrower->{'password'} && $minpw && (length($borrower->{'password'}) < $minpw) ) {
|
||||
|
@ -534,9 +536,9 @@ sub GeneratePatronAttributesForm {
|
|||
sub ParsePatronAttributes {
|
||||
my ( $cgi ) = @_;
|
||||
|
||||
my @codes = $cgi->param('patron_attribute_code');
|
||||
my @values = $cgi->param('patron_attribute_value');
|
||||
my @passwords = $cgi->param('patron_attribute_password');
|
||||
my @codes = $cgi->multi_param('patron_attribute_code');
|
||||
my @values = $cgi->multi_param('patron_attribute_value');
|
||||
my @passwords = $cgi->multi_param('patron_attribute_password');
|
||||
|
||||
my $ea = each_array( @codes, @values, @passwords );
|
||||
my @attributes;
|
||||
|
|
Loading…
Reference in a new issue