mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Fixed problems with show data in recon task and save data. Tiquet: #2780
This commit is contained in:
parent
1951cce831
commit
7a98fb79f7
@ -93,10 +93,11 @@ if ((isset ($_GET["update"])) OR ((isset ($_GET["create"])))) {
|
|||||||
$snmp_community = get_parameter_post ("snmp_community", "public");
|
$snmp_community = get_parameter_post ("snmp_community", "public");
|
||||||
$id_recon_script = get_parameter ("id_recon_script", 0);
|
$id_recon_script = get_parameter ("id_recon_script", 0);
|
||||||
$mode = get_parameter ("mode", "");
|
$mode = get_parameter ("mode", "");
|
||||||
$field1 = get_parameter ("field1", "");
|
$field1 = get_parameter ("_field1_", "");
|
||||||
$field2 = get_parameter ("field2", "");
|
$field2 = get_parameter ("_field2_", "");
|
||||||
$field3 = get_parameter ("field3", "");
|
$field3 = get_parameter ("_field3_", "");
|
||||||
$field4 = get_parameter ("field4", "");
|
$field4 = get_parameter ("_field4_", "");
|
||||||
|
|
||||||
if ($mode == "network_sweep")
|
if ($mode == "network_sweep")
|
||||||
$id_recon_script = 0;
|
$id_recon_script = 0;
|
||||||
else
|
else
|
||||||
@ -301,7 +302,7 @@ if ($result !== false) {
|
|||||||
if ($row["id_recon_script"] == 0)
|
if ($row["id_recon_script"] == 0)
|
||||||
$data[1] = $row["subnet"];
|
$data[1] = $row["subnet"];
|
||||||
else
|
else
|
||||||
$data[1] =__("N/A");
|
$data[1] = "-";
|
||||||
|
|
||||||
|
|
||||||
if ($row["id_recon_script"] == 0) {
|
if ($row["id_recon_script"] == 0) {
|
||||||
|
@ -130,7 +130,7 @@ else {
|
|||||||
$data[3] = $task["subnet"];
|
$data[3] = $task["subnet"];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$data[3] = __("N/A");
|
$data[3] = "-";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($task["status"] <= 0) {
|
if ($task["status"] <= 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user