Networkmap php8 fix
This commit is contained in:
parent
993406fa76
commit
5a761059ea
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue