mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
fixed wrong error message: recon task is not necessarily linked to script
This commit is contained in:
parent
41b603d5a0
commit
fc429efce2
@ -350,28 +350,21 @@ class ManageNetScanScripts extends Wizard
|
|||||||
['id_recon_script' => $id_script]
|
['id_recon_script' => $id_script]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$result_dlt2 = db_process_sql_delete(
|
||||||
|
'trecon_task',
|
||||||
|
['id_recon_script' => $id_script]
|
||||||
|
);
|
||||||
|
|
||||||
if (!$result_dlt) {
|
if (!$result_dlt) {
|
||||||
$result = [
|
$result = [
|
||||||
'error' => 1,
|
'error' => 1,
|
||||||
'msg' => __('Problem deleting Net scan Scripts'),
|
'msg' => __('Problem deleting Net scan Scripts'),
|
||||||
];
|
];
|
||||||
} else {
|
} else {
|
||||||
$result_dlt2 = db_process_sql_delete(
|
$result = [
|
||||||
'trecon_task',
|
'error' => 0,
|
||||||
['id_recon_script' => $id_script]
|
'msg' => __('Deleted successfully'),
|
||||||
);
|
];
|
||||||
|
|
||||||
if (!$result_dlt2) {
|
|
||||||
$result = [
|
|
||||||
'error' => 1,
|
|
||||||
'msg' => __('Problem deleting Net scan Scripts'),
|
|
||||||
];
|
|
||||||
} else {
|
|
||||||
$result = [
|
|
||||||
'error' => 0,
|
|
||||||
'msg' => __('Deleted successfully'),
|
|
||||||
];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user