Skip to content

Commit

Permalink
Fix exception when no log file exists
Browse files Browse the repository at this point in the history
  • Loading branch information
peppeocchi committed Mar 23, 2015
1 parent 244f4e6 commit 0da2e91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Rap2hpoutre/LaravelLogViewer/LaravelLogViewer.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public static function all()

if (!self::$file) {
$log_file = self::getFiles();
if(!count($log_file)) {
return [];
}
self::$file = $log_file[0];
}

Expand Down

0 comments on commit 0da2e91

Please sign in to comment.