From 4566aee4e1ac8d1fdc3e3f796df3b8ca3d9d2b6a Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Mon, 12 Mar 2018 13:47:57 +0100 Subject: [PATCH] Fixed duplicate definition $rs --- pandora_server/lib/PandoraFMS/Core.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index 6cd70a7441..ee756c97c2 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -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;