Skip to content

Commit 03fa99b

Browse files
authored
Merge pull request #5 from sebschaefer/patch-1
Fix: utility failure, if first file is not .log*
2 parents cbb212c + 5543587 commit 03fa99b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utility.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static function contentHtml (): string
3434
$logFiles = array_values(array_filter(
3535
scandir($logsDir),
3636
function ($var) {
37-
return $var[0] != '.';
37+
return $var[0] != '.' && strpos($var, '.log');
3838
}
3939
));
4040

0 commit comments

Comments
 (0)