Line 11926, added isset to check for index 0:   if (is_array($pri_find) && count($pri_find) && isset($pri_find[0])) {
This commit is contained in:
Jeff Odegard 2018-10-29 20:03:24 -06:00 committed by GitHub
parent f1cab13251
commit ebc5cc6a7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11923,7 +11923,7 @@ class db
$stig = $this->get_STIG_By_PDI($find->get_PDI_ID()); $stig = $this->get_STIG_By_PDI($find->get_PDI_ID());
$pri_find = $this->get_Finding($pri_tgt, $stig); $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]; $pri_find = $pri_find[0];
if ($pri_find->get_Finding_Status() != $find->get_Finding_Status()) { 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())); $pri_find->set_Finding_Status_By_String($pri_find->get_Deconflicted_Status($find->get_Finding_Status_String()));