Skip to content

Commit

Permalink
Fix if table is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsah committed Jun 6, 2023
1 parent 089f4c5 commit 8c43b35
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/Services/Analyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,15 @@ protected function parseLogs()
}
}

$result_data[] = $table;
$this->data[] = [
'start_time' => new DateTime($result['start_time']),
'end_time' => new DateTime($result['end_time']),
'log' => $result_data
];
if (isset($table)) {
$result_data[] = $table;
$this->data[] = [
'start_time' => new DateTime($result['start_time']),
'end_time' => new DateTime($result['end_time']),
'log' => $result_data
];

}
}

$this->tables = array_unique($this->tables);
Expand Down

0 comments on commit 8c43b35

Please sign in to comment.