Skip to content

Commit

Permalink
Revert "[L5] Fix for addon crash when DB::disableQueryLog() was calle…
Browse files Browse the repository at this point in the history
…d in a user application"
  • Loading branch information
barryvdh committed May 26, 2015
1 parent d9abfd1 commit 8d313ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LaravelDebugbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ function ($level, $message, $context) use ($logger) {
}
}

if ($this->shouldCollect('db', true) && isset($this->app['db']) && $this->app['db']->logging()) {
if ($this->shouldCollect('db', true) && isset($this->app['db'])) {
$db = $this->app['db'];
if ($debugbar->hasCollector('time') && $this->app['config']->get(
'debugbar.options.db.timeline',
Expand Down

0 comments on commit 8d313ba

Please sign in to comment.