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 ' .
|
' 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 (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 expiretime>:nowtime ' .
|
||||||
' AND (recipients="" OR recipients="[]" OR recipients LIKE "%:accountid%");',
|
' AND (recipients="" OR recipients="[]" OR recipients LIKE "%'.$account_id.'%");',
|
||||||
array(
|
array(
|
||||||
':createtime' => $usercreate,
|
':createtime' => $usercreate,
|
||||||
':nowtime' => $nowtime,
|
':nowtime' => $nowtime
|
||||||
':accountid' => $account_id
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -211,11 +210,10 @@ class MailController
|
|||||||
$querystr = 'SELECT mail_id, subject, content, attachments FROM t_mail WHERE 1=1 AND deleted=0 ' .
|
$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 (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 expiretime>:nowtime ' .
|
||||||
' AND (recipients="" OR recipients="[]" OR recipients LIKE "%:accountid%")';
|
' AND (recipients="" OR recipients="[]" OR recipients LIKE "%'.$account_id.'%")';
|
||||||
$params = array(
|
$params = array(
|
||||||
':createtime' => $usercreate,
|
':createtime' => $usercreate,
|
||||||
':nowtime' => $nowtime,
|
':nowtime' => $nowtime
|
||||||
':accountid' => $account_id
|
|
||||||
);
|
);
|
||||||
if ($mailid > 0) {
|
if ($mailid > 0) {
|
||||||
$querystr = $querystr . ' AND mail_id=:mailid';
|
$querystr = $querystr . ' AND mail_id=:mailid';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user