diff --git a/pandora_console/godmode/reporting/reporting_builder.php b/pandora_console/godmode/reporting/reporting_builder.php index d8167ccaa9..229c5ab56f 100755 --- a/pandora_console/godmode/reporting/reporting_builder.php +++ b/pandora_console/godmode/reporting/reporting_builder.php @@ -1869,7 +1869,7 @@ switch ($action) { break; } - metaconsole_restore_db_force(); + metaconsole_restore_db(); $temp_sort[$report_item['id_rc']] = $element_name; diff --git a/pandora_console/include/ajax/events.php b/pandora_console/include/ajax/events.php index f50b5b9d87..afdd2fc759 100644 --- a/pandora_console/include/ajax/events.php +++ b/pandora_console/include/ajax/events.php @@ -415,7 +415,7 @@ if ($get_extended_event) { $custom_data = events_page_custom_data($event); if ($meta) { - metaconsole_restore_db_force(); + metaconsole_restore_db(); } $general = events_page_general($event); diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index ce5d2f0c42..2f874ac72b 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -1888,7 +1888,7 @@ function events_get_response_target($event_id, $response_id, $server_id, $histor ); if($meta) { - metaconsole_restore_db_force(); + metaconsole_restore_db(); } } else { $target = str_replace('_module_address_', __('N/A'), $target); diff --git a/pandora_console/include/functions_groups.php b/pandora_console/include/functions_groups.php index cd99934dd7..7e84b167d8 100644 --- a/pandora_console/include/functions_groups.php +++ b/pandora_console/include/functions_groups.php @@ -1228,7 +1228,7 @@ function groups_get_monitors_counter ($group, $agent_filter = array(), $module_f else $module_status = array($module_filter["status"]); - $status_array = ""; + $status_array = array(); foreach ($module_status as $status) { switch ($status) { case AGENT_MODULE_STATUS_ALL: diff --git a/pandora_console/include/functions_visual_map_editor.php b/pandora_console/include/functions_visual_map_editor.php index 81e9549fdd..3a270f2135 100755 --- a/pandora_console/include/functions_visual_map_editor.php +++ b/pandora_console/include/functions_visual_map_editor.php @@ -640,7 +640,7 @@ function visual_map_editor_print_item_palette($visualConsole_id, $background) { foreach ($form_items as $item => $item_options) { - echo ''; + echo ''; echo $item_options['html']; echo ''; } @@ -721,9 +721,11 @@ function visual_map_editor_print_item_palette($visualConsole_id, $background) { $node_visual_maps = db_get_all_rows_filter("tlayout", array(), array("id", "name")); - foreach ($node_visual_maps as $node_visual_map) { - $node_visual_map["node_id"] = (int) $server["id"]; - $visual_maps[] = $node_visual_map; + if(isset($node_visual_maps) && is_array($node_visual_maps)){ + foreach ($node_visual_maps as $node_visual_map) { + $node_visual_map["node_id"] = (int) $server["id"]; + $visual_maps[] = $node_visual_map; + } } metaconsole_restore_db();