diff --git a/pandora_console/operation/maps/networkmap_editor.php b/pandora_console/operation/maps/networkmap_editor.php index d6b435aaae..3fc1b9621e 100644 --- a/pandora_console/operation/maps/networkmap_editor.php +++ b/pandora_console/operation/maps/networkmap_editor.php @@ -126,7 +126,7 @@ else { $table->style[0] = 'font-weight: bold; width: 150px;'; $table->data = array(); - $subtype = array( + $subtypes = array( MAP_SUBTYPE_TOPOLOGY => 'Topology', MAP_SUBTYPE_POLICIES => 'Policies', MAP_SUBTYPE_GROUPS => 'Groups', @@ -134,7 +134,7 @@ else { ); $table->data[0][0] = __('Subtype'); - $table->data[0][1] = html_print_select($subtype, 'subtype', $subtype, + $table->data[0][1] = html_print_select($subtypes, 'subtype', $subtype, '', '', 'Topology', true, false, true, '', $disabled_select); @@ -143,7 +143,7 @@ else { html_print_radio_button('source', MAP_SOURCE_GROUP, __('Group'), $source, true) . html_print_radio_button('source', MAP_SOURCE_IP_MASK, __('CIDR IP mask'), $source, true); - $generation_method = array( + $generation_methods = array( MAP_GENERATION_RADIAL => 'Radial', MAP_GENERATION_PLANO => 'Flat', MAP_GENERATION_CIRCULAR => 'Circular', @@ -152,7 +152,7 @@ else { ); $table->data[2][0] = __('Method generation networkmap'); - $table->data[2][1] = html_print_select($generation_method, 'generation_method', $generation_method, + $table->data[2][1] = html_print_select($generation_methods, 'generation_method', $generation_method, '', '', 'twopi', true, false, true, '', $disabled_select); diff --git a/pandora_console/operation/maps/networkmap_list.php b/pandora_console/operation/maps/networkmap_list.php index fa5142be41..2b14049ce7 100644 --- a/pandora_console/operation/maps/networkmap_list.php +++ b/pandora_console/operation/maps/networkmap_list.php @@ -116,7 +116,7 @@ if ($save_networkmap) { $values['source_period'] = $source_period; $values['source_data'] = $source_data; $values['generation_method'] = $generation_method; - + $values['source'] = $source; $filter = array(); $filter['show_groups_filter'] = 60; $filter['show_module_plugins'] = $show_module_plugins; @@ -230,7 +230,7 @@ else if ($delete_networkmap || $duplicate_networkmap || $update_networkmap) { $filter['id_tag'] = $id_tag; $filter['text'] = $text; $values['filter'] = json_encode($filter); - + $result_update = false; if (!empty($name)) { $result_update = maps_update_map($id, $values);