diff --git a/server/modules/api/controller/ChatLogic.php b/server/modules/api/controller/ChatLogic.php index a0d119b..645122e 100644 --- a/server/modules/api/controller/ChatLogic.php +++ b/server/modules/api/controller/ChatLogic.php @@ -996,6 +996,9 @@ class ChatLogic extends Base $where = ' AND ws_payment_type.id IN('.$pay_type['rules'].')'; } } + if (!$where) { + return []; + } $sql = "SELECT ws_payment_type.id,ws_payment_type.type_name,ws_payment_type.alias_id FROM `ws_payment` INNER JOIN `ws_payment_type` ON `ws_payment`.`payment_type`=`ws_payment_type`.`id`