From e893267c60fdf1a11c308b7e5c73a7028a65442c Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Tue, 15 Jan 2019 12:51:17 -0500 Subject: [PATCH] enh(scan class): Add return for set_Host_Error method --- classes/scan.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/classes/scan.inc b/classes/scan.inc index 49069f8..1383ead 100644 --- a/classes/scan.inc +++ b/classes/scan.inc @@ -620,6 +620,8 @@ class scan * @param int $tgt_id * @param boolean $is_error * @param string $err_msg + * + * @return boolean */ public function set_Host_Error($tgt_id, $is_error, $err_msg = null) { @@ -628,9 +630,11 @@ class scan if($h->getTargetId() == $tgt_id) { $this->host_list[$x]->setScanError($is_error); $this->host_list[$x]->setScanNotes($err_msg); - break; + return true; } } + + return false; } /**