Skip to content

Commit

Permalink
Make sure Date and Time exist in _getLogStartDate()
Browse files Browse the repository at this point in the history
  • Loading branch information
sonertari committed Oct 18, 2024
1 parent 2174416 commit 27038bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/model.php
Original file line number Diff line number Diff line change
Expand Up @@ -1505,7 +1505,7 @@ function _getLogStartDate($file)
if (!preg_match('/.*\.gz$/', $file)) {
$logline= $this->GetFileFirstLine($file);

if ($this->ParseLogLine($logline, $cols)) {
if ($this->ParseLogLine($logline, $cols) && isset($cols['Date']) && isset($cols['Time'])) {
return $cols['Date'].' '.$cols['Time'];
} else {
return _('Unknown');
Expand Down

0 comments on commit 27038bd

Please sign in to comment.