Skip to content

Commit 030e069

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

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
@@ -225,8 +225,9 @@ protected function fetchRows($all = true, $indexBy = null, $db = null)
225225
Yii::beginProfile($token, __METHOD__);
226226
}
227227
$result = $this->fetchRowsInternal($cursor, $all);
228-
if($db->enableProfiling)
228+
if ($db->enableProfiling) {
229229
Yii::endProfile($token, __METHOD__);
230+
}
230231

231232
return $result;
232233
} catch (\Exception $e) {

0 commit comments

Comments
 (0)