Skip to content

Commit

Permalink
Merge pull request #15 from peppeocchi/master
Browse files Browse the repository at this point in the history
Fix exception undefined offsed 0 - issue#14
  • Loading branch information
rap2hpoutre committed Mar 23, 2015
2 parents 244f4e6 + 0da2e91 commit d265502
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 d265502

Please sign in to comment.