From a877649b33aff9e9623b5cb49ee9ef205d35f568 Mon Sep 17 00:00:00 2001 From: Riccardo Bicelli Date: Fri, 24 Jan 2020 16:39:58 +0100 Subject: [PATCH] Fixed square bracket @line 159 --- pfsense_zbx.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pfsense_zbx.php b/pfsense_zbx.php index 48b873b..fbf6291 100644 --- a/pfsense_zbx.php +++ b/pfsense_zbx.php @@ -156,7 +156,7 @@ function pfz_services_discovery(){ //id for OpenVPN if (!empty($service['id'])) $id = "." . $service["id"]; //zone for Captive Portal - if (!empty($service['zone')) $id = "." . $service["zone"]; + if (!empty($service['zone'])) $id = "." . $service["zone"]; $json_string .= '{"{#SERVICE}":"' . $service['name'] . $id . '"'; $json_string .= ',"{#DESCRIPTION}":"' . $service['description'] . '"';