Fix report index updating

This commit is contained in:
Starbeamrainbowlabs 2018-03-07 23:33:15 +00:00
parent e5c0554282
commit ce79fe9331
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -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;