Skip to content

Commit

Permalink
Fix notice in SQL logger.
Browse files Browse the repository at this point in the history
  • Loading branch information
discordier committed Dec 17, 2014
1 parent bfdd90e commit 8473839
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ protected function convertStatement($stmt)
{
$newstmt = array(
'sql' => $stmt['realquery'],
'row_count' => $stmt['return_count'] ?: $stmt['affected_count'],
'row_count' => isset($stmt['return_count']) ? $stmt['return_count'] : $stmt['affected_count'],
'prepared_stmt' => $stmt['query'],
'params' => (object)$stmt['params'],
'params' => (object) $stmt['params'],
'duration' => $stmt['duration'],
'duration_str' => $this->getDataFormatter()->formatDuration($stmt['duration']),
'is_success' => true,
Expand Down

0 comments on commit 8473839

Please sign in to comment.