Skip to content

Commit bb74333

Browse files
ziaratbansamdark
andauthored
Update src/Query.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
1 parent f6e2afb commit bb74333

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Query.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,9 @@ protected function fetchRows($all = true, $indexBy = null, $db = null)
221221
Yii::info($token, __METHOD__);
222222
}
223223
try {
224-
if($db->enableProfiling)
224+
if ($db->enableProfiling) {
225225
Yii::beginProfile($token, __METHOD__);
226+
}
226227
$result = $this->fetchRowsInternal($cursor, $all);
227228
if($db->enableProfiling)
228229
Yii::endProfile($token, __METHOD__);

0 commit comments

Comments
 (0)