From 9be5466e7721bc98fecf683a72e1ff411958806a Mon Sep 17 00:00:00 2001 From: yangduo Date: Tue, 29 Apr 2025 17:38:27 +0800 Subject: [PATCH] fix --- webapp/controller/MailController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/controller/MailController.class.php b/webapp/controller/MailController.class.php index 5342f5b..9b73850 100644 --- a/webapp/controller/MailController.class.php +++ b/webapp/controller/MailController.class.php @@ -86,9 +86,9 @@ class MailController $mailrows = $mailconn->execQuery( ' SELECT mail_id, subject, content, attachments FROM t_mail WHERE 1=1 AND deleted=0 ' . - ' AND (user_reg_start_time=0 OR user_reg_end_time=0 OR (user_reg_start_time<:createtime AND user_reg_end_time>:createtime) ' . + ' AND (user_reg_start_time=0 OR user_reg_end_time=0 OR (user_reg_start_time<:createtime AND user_reg_end_time>:createtime)) ' . ' AND expiretime>:nowtime ' . - ' AND recipients="" OR recipients LIKE "%:accountid%";', + ' AND (recipients="" OR recipients LIKE "%:accountid%");', array( ':createtime' => $usercreate, ':nowtime' => $nowtime,