From 0e991bc261d8ec2fc61bca39cd388bce8c0ed19d Mon Sep 17 00:00:00 2001 From: UrBnW <40244829+UrBnW@users.noreply.github.com> Date: Wed, 16 Jun 2021 14:45:58 +0200 Subject: [PATCH] fix(3cx): Typo (#2882) --- centreon-plugins/apps/voip/3cx/restapi/mode/system.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon-plugins/apps/voip/3cx/restapi/mode/system.pm b/centreon-plugins/apps/voip/3cx/restapi/mode/system.pm index dd121de30..7a2407026 100644 --- a/centreon-plugins/apps/voip/3cx/restapi/mode/system.pm +++ b/centreon-plugins/apps/voip/3cx/restapi/mode/system.pm @@ -123,7 +123,7 @@ sub manage_selection { error => $system->{HasUnregisteredSystemExtensions} ? 'true' : 'false', }; my $updates = 0; - foreach my $category (@$update) { + foreach my $item (@$update) { if (defined($self->{option_results}->{filter_category}) && $self->{option_results}->{filter_category} ne '' && $item->{Category} !~ /$self->{option_results}->{filter_category}/) { $self->{output}->output_add(long_msg => "skipping update '" . $item->{Category} . "': no matching filter.", debug => 1);