Skip to content

Commit 8473839

Browse files
committed
Fix notice in SQL logger.
1 parent bfdd90e commit 8473839

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CyberSpectrum/ContaoDebugger/DebugBar/DataCollector/ContaoSQLCollector.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ protected function convertStatement($stmt)
7272
{
7373
$newstmt = array(
7474
'sql' => $stmt['realquery'],
75-
'row_count' => $stmt['return_count'] ?: $stmt['affected_count'],
75+
'row_count' => isset($stmt['return_count']) ? $stmt['return_count'] : $stmt['affected_count'],
7676
'prepared_stmt' => $stmt['query'],
77-
'params' => (object)$stmt['params'],
77+
'params' => (object) $stmt['params'],
7878
'duration' => $stmt['duration'],
7979
'duration_str' => $this->getDataFormatter()->formatDuration($stmt['duration']),
8080
'is_success' => true,

0 commit comments

Comments
 (0)