mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Fixed null values in js
This commit is contained in:
parent
faac4fa46f
commit
72acac8b57
@ -699,10 +699,25 @@ if (enterprise_installed()) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$networkmap_filter = json_decode($networkmap['filter'], true);
|
$networkmap_filter = json_decode($networkmap['filter'], true);
|
||||||
|
if ($networkmap_filter['x_offs'] != null) {
|
||||||
$map_dash_details['x_offs'] = $networkmap_filter['x_offs'];
|
$map_dash_details['x_offs'] = $networkmap_filter['x_offs'];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$map_dash_details['x_offs'] = 0;
|
||||||
|
}
|
||||||
|
if ($networkmap_filter['y_offs'] != null) {
|
||||||
$map_dash_details['y_offs'] = $networkmap_filter['y_offs'];
|
$map_dash_details['y_offs'] = $networkmap_filter['y_offs'];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$map_dash_details['y_offs'] = 0;
|
||||||
|
}
|
||||||
|
if ($networkmap_filter['z_dash'] != null) {
|
||||||
$map_dash_details['z_dash'] = $networkmap_filter['z_dash'];
|
$map_dash_details['z_dash'] = $networkmap_filter['z_dash'];
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
$map_dash_details['z_dash'] = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($networkmap === false) {
|
if ($networkmap === false) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user