Skip to content

Commit 8c43b35

Browse files
committed
Fix if table is not set
1 parent 089f4c5 commit 8c43b35

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

src/Services/Analyzer.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,15 @@ protected function parseLogs()
188188
}
189189
}
190190

191-
$result_data[] = $table;
192-
$this->data[] = [
193-
'start_time' => new DateTime($result['start_time']),
194-
'end_time' => new DateTime($result['end_time']),
195-
'log' => $result_data
196-
];
191+
if (isset($table)) {
192+
$result_data[] = $table;
193+
$this->data[] = [
194+
'start_time' => new DateTime($result['start_time']),
195+
'end_time' => new DateTime($result['end_time']),
196+
'log' => $result_data
197+
];
198+
199+
}
197200
}
198201

199202
$this->tables = array_unique($this->tables);

0 commit comments

Comments
 (0)