minor fix

Former-commit-id: e1a238bd34f4264e6be9c8a826cc1057578dd0a7
This commit is contained in:
fbsanchez 2019-03-26 16:54:11 +01:00
parent a76ad27825
commit ee6ab43a8c
1 changed files with 8 additions and 2 deletions

View File

@ -171,7 +171,10 @@ if (enterprise_installed()) {
$description = get_parameter('description', ''); $description = get_parameter('description', '');
$values['description'] = $description; $values['description'] = $description;
$dont_show_subgroups = 0; $dont_show_subgroups = (int) get_parameter_checkbox(
'dont_show_subgroups',
0
);
$node_radius = (int) get_parameter('node_radius', 40); $node_radius = (int) get_parameter('node_radius', 40);
$row = db_get_row('tmap', 'id', $id); $row = db_get_row('tmap', 'id', $id);
$filter = json_decode($row['filter'], true); $filter = json_decode($row['filter'], true);
@ -250,7 +253,10 @@ if ($new_networkmap || $save_networkmap) {
'' ''
); );
$source = (string) get_parameter('source', 'group'); $source = (string) get_parameter('source', 'group');
$dont_show_subgroups = (int) get_parameter('dont_show_subgroups', 0); $dont_show_subgroups = (int) get_parameter_checkbox(
'dont_show_subgroups',
0
);
$node_radius = (int) get_parameter('node_radius', 40); $node_radius = (int) get_parameter('node_radius', 40);
$description = get_parameter('description', ''); $description = get_parameter('description', '');