From 5a761059eaf48453d020abe647ccb6087daa2a1e Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Tue, 11 Jan 2022 11:00:54 +0100 Subject: [PATCH] Networkmap php8 fix --- pandora_console/include/class/NetworkMap.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pandora_console/include/class/NetworkMap.class.php b/pandora_console/include/class/NetworkMap.class.php index f7b9ddec79..6ae014b01a 100644 --- a/pandora_console/include/class/NetworkMap.class.php +++ b/pandora_console/include/class/NetworkMap.class.php @@ -2430,6 +2430,13 @@ class NetworkMap $this->map['height'] = $this->mapOptions['height']; } + if (is_string($this->map['filter']) === true) { + $this->map['filter'] = json_decode($this->map['filter'], true); + if (json_last_error() !== JSON_ERROR_NONE) { + $this->map['filter'] = []; + } + } + $this->map['filter']['z_dash'] = $this->mapOptions['z_dash']; if (is_array($graph) === true) {