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;