fix
This commit is contained in:
parent
41669f574d
commit
2f5bcaddf3
@ -88,11 +88,10 @@ class MailController
|
||||
' SELECT mail_id, subject, content, attachments, expiretime 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 expiretime>:nowtime ' .
|
||||
' AND (recipients="" OR recipients="[]" OR recipients LIKE "%:accountid%");',
|
||||
' AND (recipients="" OR recipients="[]" OR recipients LIKE "%'.$account_id.'%");',
|
||||
array(
|
||||
':createtime' => $usercreate,
|
||||
':nowtime' => $nowtime,
|
||||
':accountid' => $account_id
|
||||
':nowtime' => $nowtime
|
||||
)
|
||||
);
|
||||
|
||||
@ -211,11 +210,10 @@ class MailController
|
||||
$querystr = '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 expiretime>:nowtime ' .
|
||||
' AND (recipients="" OR recipients="[]" OR recipients LIKE "%:accountid%")';
|
||||
' AND (recipients="" OR recipients="[]" OR recipients LIKE "%'.$account_id.'%")';
|
||||
$params = array(
|
||||
':createtime' => $usercreate,
|
||||
':nowtime' => $nowtime,
|
||||
':accountid' => $account_id
|
||||
':nowtime' => $nowtime
|
||||
);
|
||||
if ($mailid > 0) {
|
||||
$querystr = $querystr . ' AND mail_id=:mailid';
|
||||
|
Loading…
x
Reference in New Issue
Block a user