From 7e44403d93b47fb7677049727645c76738f173dd Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Thu, 8 Nov 2018 09:45:12 -0500 Subject: [PATCH] Fix for #67 --- inc/database.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/inc/database.inc b/inc/database.inc index 779a3b4..a615e34 100644 --- a/inc/database.inc +++ b/inc/database.inc @@ -5249,14 +5249,13 @@ EOQ; $current_finding = $this->get_Finding($tgts, $ref); if (is_array($current_finding) && count($current_finding) > 0) { - $current_finding = $current_finding[0]; + $current_finding = current($current_finding); } $current_status = ''; - if (is_array($current_finding) && count($current_finding)) { + if (is_a($current_finding, 'finding')) { $current_status = $current_finding->get_Finding_Status_String(); - // $current_source = $current_finding->get(); if ($current_status != $status) { $current_notes = $current_finding->get_Notes();