From ebc5cc6a7e024fd5ef8f866f859f08b9f7d8896a Mon Sep 17 00:00:00 2001 From: Jeff Odegard <42775175+JeffOdegard@users.noreply.github.com> Date: Mon, 29 Oct 2018 20:03:24 -0600 Subject: [PATCH] Fix for #63 Line 11926, added isset to check for index 0: if (is_array($pri_find) && count($pri_find) && isset($pri_find[0])) { --- inc/database.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/database.inc b/inc/database.inc index c9bb7d7..43a4a24 100644 --- a/inc/database.inc +++ b/inc/database.inc @@ -11923,7 +11923,7 @@ class db $stig = $this->get_STIG_By_PDI($find->get_PDI_ID()); $pri_find = $this->get_Finding($pri_tgt, $stig); - if (is_array($pri_find) && count($pri_find)) { + if (is_array($pri_find) && count($pri_find) && isset($pri_find[0])) { $pri_find = $pri_find[0]; if ($pri_find->get_Finding_Status() != $find->get_Finding_Status()) { $pri_find->set_Finding_Status_By_String($pri_find->get_Deconflicted_Status($find->get_Finding_Status_String()));