From 1fb92e28f30fa9e8a96cad1a0b4657b441c417fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Su=C3=A1rez?= Date: Thu, 20 Jul 2023 11:39:02 -0600 Subject: [PATCH] Change of comparison operator --- pandora_server/util/pandora_manage.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_server/util/pandora_manage.pl b/pandora_server/util/pandora_manage.pl index 5387e4d150..3740472613 100755 --- a/pandora_server/util/pandora_manage.pl +++ b/pandora_server/util/pandora_manage.pl @@ -5422,7 +5422,7 @@ sub cli_create_synthetic() { my @module_data; - if (@ARGV[$#ARGV] == "use_alias") { + if (@ARGV[$#ARGV] eq "use_alias") { @module_data = @ARGV[5..$#ARGV-1]; } else { @module_data = @ARGV[5..$#ARGV]; @@ -5542,7 +5542,7 @@ sub cli_create_synthetic() { } } else { my $id_agent = int(get_agent_id($dbh,$agent_name)); - + if ($id_agent > 0) { foreach my $i (0 .. $#module_data) { my @split_data = split(',',$module_data[$i]);