Skip to content

Commit 5fdb9a0

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

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
@@ -231,8 +231,9 @@ protected function fetchRows($all = true, $indexBy = null, $db = null)
231231

232232
return $result;
233233
} catch (\Exception $e) {
234-
if($db->enableProfiling)
234+
if ($db->enableProfiling) {
235235
Yii::endProfile($token, __METHOD__);
236+
}
236237
throw new Exception($e->getMessage(), (int) $e->getCode(), $e);
237238
}
238239
}

0 commit comments

Comments
 (0)