From ce79fe933112921d8c782c4a5b7bda47509c9c58 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Wed, 7 Mar 2018 23:33:15 +0000 Subject: [PATCH] Fix report index updating --- Actions/Report.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Actions/Report.php b/Actions/Report.php index cfecab1..44f5739 100644 --- a/Actions/Report.php +++ b/Actions/Report.php @@ -108,8 +108,9 @@ class Report extends \Sandpiper\AbstractAction $index_xml = simplexml_load_file($place_index_filename); $index_entry = null; - foreach($index_xml->error_list as $entry) { - if($entry->summary->__toString() != $new_report->summary) + foreach($index_xml->error_list->error as $entry) { + var_dump($entry); + if($entry->filename->__toString() != basename($report_filename)) continue; $index_entry = $entry; break;