From 5849a2620eb6c559099dbf6856a65028b2b11b37 Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Thu, 29 Nov 2018 14:32:45 -0500 Subject: [PATCH] Fix for #75 --- exec/parse_nessus.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/parse_nessus.php b/exec/parse_nessus.php index 29aed04..cf3fd0e 100644 --- a/exec/parse_nessus.php +++ b/exec/parse_nessus.php @@ -1211,7 +1211,7 @@ class nessus_parser extends scan_xml_parser $finding = $this->db->get_Finding($this->tgt, $this->plugin->db_plugin); if (is_array($finding) && count($finding)) { - $finding = $finding[0]; + $finding = current($finding[0]); } if (is_a($finding, 'finding')) {