Skip to content

Commit

Permalink
fix: fix #256
Browse files Browse the repository at this point in the history
  • Loading branch information
rap2hpoutre authored May 4, 2022
1 parent 52e7c70 commit 1dfd871
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/controllers/LogViewerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ public function index()

if (is_array($data['logs']) && count($data['logs']) > 0) {
$firstLog = reset($data['logs']);
if (!$firstLog['context'] && !$firstLog['level']) {
$data['standardFormat'] = false;
if ($firstLog) {
if (!$firstLog['context'] && !$firstLog['level']) {
$data['standardFormat'] = false;
}
}
}

Expand Down

0 comments on commit 1dfd871

Please # to comment.