Networkmap php8 fix

This commit is contained in:
fbsanchez 2022-01-11 11:00:54 +01:00
parent 993406fa76
commit 5a761059ea
1 changed files with 7 additions and 0 deletions

View File

@ -2430,6 +2430,13 @@ class NetworkMap
$this->map['height'] = $this->mapOptions['height']; $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']; $this->map['filter']['z_dash'] = $this->mapOptions['z_dash'];
if (is_array($graph) === true) { if (is_array($graph) === true) {