From 49ee9e5fd709118ba85631fbc6d83e8496394ca9 Mon Sep 17 00:00:00 2001 From: CPbN <40244829+CPbN@users.noreply.github.com> Date: Mon, 8 Jul 2019 11:21:51 +0200 Subject: [PATCH] 3CX typo --- centreon-plugins/apps/voip/3cx/restapi/custom/api.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/centreon-plugins/apps/voip/3cx/restapi/custom/api.pm b/centreon-plugins/apps/voip/3cx/restapi/custom/api.pm index f79528b95..ed7508dbd 100644 --- a/centreon-plugins/apps/voip/3cx/restapi/custom/api.pm +++ b/centreon-plugins/apps/voip/3cx/restapi/custom/api.pm @@ -253,9 +253,9 @@ sub internal_update_checker { my ($self, %options) = @_; my $status = $self->request_api(method => 'GET', url_path =>'/api/UpdateChecker/GetFromParams', eval_content => 1); - if(ref($status) eq 'HASH') { + if (ref($status) eq 'HASH') { $status = $status->{tcxUpdate}; - if(ref($status) ne 'ARRAY') { + if (ref($status) ne 'ARRAY') { # See above note about strange content $status = JSON::XS->new->utf8->decode($status); }