Skip to content

Commit 990bcd8

Browse files
authored
Merge pull request #16 from aryehraber/fix/null-log-result
Fix null log result issue (fixes #15)
2 parents 0bd33af + 439e34d commit 990bcd8

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
.env
22
node_modules/
33
bower_components/
4+
vendor/
45
package.json
56
mix-manifest.json
67
webpack.config.js
78
webpack.mix.js
8-
yarn.lock
9+
yarn.lock
10+
composer.lock

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"statamic": {
3131
"name": "Logbook",
3232
"description": "Manage and view log files in the CP.",
33-
"version": "2.0.2"
33+
"version": "2.2.0"
3434
},
3535
"laravel": {
3636
"providers": [

src/LogbookController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function show(Request $request, LaravelLogViewer $logviewer)
1919
}
2020

2121
return view('logbook::show', [
22-
'logs' => $this->sanitize($logviewer->all()),
22+
'logs' => $this->sanitize($logviewer->all() ?? []),
2323
'files' => $logviewer->getFiles(true),
2424
'currentFile' => $logviewer->getFileName(),
2525
]);

0 commit comments

Comments
 (0)