From 2c33ff108aeb33e3500c742e7181041d3a5ed01b Mon Sep 17 00:00:00 2001 From: wangxuepeng Date: Wed, 11 Oct 2023 02:39:46 +0000 Subject: [PATCH] * Refactor actionModel:getBySQL. --- module/action/model.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/module/action/model.php b/module/action/model.php index e93b62cc56..50fba1ee68 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -793,8 +793,6 @@ class actionModel extends model public function getBySQL(string $sql, string $orderBy, object $pager = null): array { $actionCondition = $this->getActionCondition(); - if(is_array($actionCondition)) return array(); - return $this->dao->select('*')->from(TABLE_ACTION) ->where($sql) ->beginIF(!empty($actionCondition))->andWhere("($actionCondition)")->fi()