diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index c3332973ee..42e543470f 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-07-07 Sergio Martin + + * operation/servers/view_server_detail.php: Updated missed + filed in the last commit + 2011-07-07 Sergio Martin * pandoradb.sql diff --git a/pandora_console/operation/servers/view_server_detail.php b/pandora_console/operation/servers/view_server_detail.php index 2837a765bd..bca46d2796 100644 --- a/pandora_console/operation/servers/view_server_detail.php +++ b/pandora_console/operation/servers/view_server_detail.php @@ -48,8 +48,7 @@ if (check_acl ($config['id_user'], 0, "PM")) { if (isset ($_GET["force"])) { $id = (int) get_parameter_get ("force", 0); - $values = array('utimestamp' => 0, 'status' => 1); - db_process_sql_update('trecon_task', $values, array('id_rt' => $id)); + servers_force_recon_task($id); } } @@ -99,9 +98,14 @@ $table->align[8] = "center"; foreach ($recon_tasks as $task) { $data = array (); - $data[0] = ''; - $data[0] .= html_print_image ("images/target.png", true, array ("title" => __('Force'))); - $data[0] .= ''; + if($task["disabled"] == 0) { + $data[0] = ''; + $data[0] .= html_print_image ("images/target.png", true, array ("title" => __('Force'))); + $data[0] .= ''; + } + else { + $data[0] = ''; + } $data[1] = ''. $task["name"].'';