Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
recca0120 committed Oct 29, 2015
1 parent f18b8d6 commit a57bcd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/views/updateDebugger.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
});
ajaxButton.on("click", function(e) {
xhr = xhrs.shift();
var xhr = xhrs.shift();
updateDebugger(xhr.getAllResponseHeaders());
if (xhrs.length == 0) {
ajaxButton.hide();
Expand Down
5 changes: 4 additions & 1 deletion src/Panels/DatabasePanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ public function onQuery($sql, $bindings, $time, $name, $db, $connection, $pdo)
{
$runnableSql = $this->createRunnableSql($sql, $bindings);
$dumpSql = $this->dumpSql($runnableSql);
$explain = $this->getExplain($sql, $bindings, $pdo);
$explain = [];
if ($connection->getDriverName() === 'mysql') {
$explain = $this->getExplain($sql, $bindings, $pdo);
}
$editorLink = static::getEditorLink(static::findSource());
$this->attributes['count']++;
$this->attributes['totalTime'] += $time;
Expand Down

0 comments on commit a57bcd8

Please sign in to comment.