From b834c3997d44d51a7f372c411034041298e25aab Mon Sep 17 00:00:00 2001 From: Ziaratban Date: Sat, 9 Nov 2024 07:25:03 +0330 Subject: [PATCH] dev --- src/Transaction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Transaction.php b/src/Transaction.php index 6ffa743e8..242fb01c6 100644 --- a/src/Transaction.php +++ b/src/Transaction.php @@ -206,7 +206,7 @@ public function run($query, $throw = false, $log = false){ if(!YII_ENV_PROD || $log) { Yii::error($e); } - if($throw) { + if(!YII_ENV_PROD || $throw) { throw $e; } return false;