Fixed duplicate definition $rs

This commit is contained in:
fbsanchez 2018-03-12 13:47:57 +01:00
parent a66a7fde49
commit 4566aee4e1
1 changed files with 2 additions and 2 deletions

View File

@ -267,10 +267,10 @@ sub get_agent {
my $rs = get_agent_from_alias($dbh, $field);
return $rs if defined($rs) && (ref($rs)); # defined and not a scalar
my $rs = get_agent_from_addr($dbh, $field);
$rs = get_agent_from_addr($dbh, $field);
return $rs if defined($rs) && (ref($rs)); # defined and not a scalar
my $rs = get_agent_from_name($dbh, $field);
$rs = get_agent_from_name($dbh, $field);
return $rs if defined($rs) && (ref($rs)); # defined and not a scalar
return undef;