Fixed null values in js

This commit is contained in:
Arturo Gonzalez 2017-11-15 12:19:41 +01:00
parent faac4fa46f
commit 72acac8b57

View File

@ -699,10 +699,25 @@ if (enterprise_installed()) {
}
else {
$networkmap_filter = json_decode($networkmap['filter'], true);
if ($networkmap_filter['x_offs'] != null) {
$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'];
}
else {
$map_dash_details['y_offs'] = 0;
}
if ($networkmap_filter['z_dash'] != null) {
$map_dash_details['z_dash'] = $networkmap_filter['z_dash'];
}
else {
$map_dash_details['z_dash'] = 0;
}
}
}
if ($networkmap === false) {