Merge pull request #85 from cyberperspectives/v1.3.4

V1.3.4
This commit is contained in:
Cyber Perspectives, LLC 2019-01-16 12:34:08 -05:00 committed by GitHub
commit d365c9a11a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1205,13 +1205,11 @@ class nessus_parser extends scan_xml_parser
if ($this->plugin->sev == 0) {
return;
}
if (false) {
$this->plugin->result = new nessus_result();
}
/** @var nessus_result $this->plugin->result */
$finding = $this->db->get_Finding($this->tgt, $this->plugin->db_plugin);
if (is_array($finding) && count($finding) && isset($finding[0])) {
$finding = current($finding[0]);
if (is_array($finding) && count($finding)) {
$finding = current($finding);
}
if (is_a($finding, 'finding')) {
@ -1228,10 +1226,8 @@ class nessus_parser extends scan_xml_parser
}
if (is_array($orig_scan) && count($orig_scan)) {
/** @var scan $orig_scan */
$orig_scan = $orig_scan[0];
if (false) {
$orig_scan = new scan();
}
$finding->set_Original_Source($orig_scan->get_Source()->get_Name());
$finding->set_Scan_ID($this->scan->get_ID());