正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -130,7 +130,7 @@ class MailList extends Base { | @@ -130,7 +130,7 @@ class MailList extends Base { | ||
130 | $sql = "select %s from `lists` left join `fob_hot_mail` on `lists`.`id` = `fob_hot_mail`.`lists_id` where `fob_hot_mail`.`folder` = '{$extSql}' and ".dbWhere($where); | 130 | $sql = "select %s from `lists` left join `fob_hot_mail` on `lists`.`id` = `fob_hot_mail`.`lists_id` where `fob_hot_mail`.`folder` = '{$extSql}' and ".dbWhere($where); |
131 | }else{ | 131 | }else{ |
132 | if($folder == '收件箱' || $folder == '发件箱'){ | 132 | if($folder == '收件箱' || $folder == '发件箱'){ |
133 | - $sql = "select %s from `lists` left join `fob_hot_mail` on `lists`.`id` = `fob_hot_mail`.`lists_id` where ISNULL(`lists_id`) ".dbWhere($where); | 133 | + $sql = "select %s from `lists` left join `fob_hot_mail` on `lists`.`id` = `fob_hot_mail`.`lists_id` where ISNULL(`lists_id`) and ".dbWhere($where); |
134 | }else{ | 134 | }else{ |
135 | $sql = "select %s from `lists` where ".dbWhere($where); | 135 | $sql = "select %s from `lists` where ".dbWhere($where); |
136 | } | 136 | } |
@@ -158,7 +158,7 @@ class MailList extends Base { | @@ -158,7 +158,7 @@ class MailList extends Base { | ||
158 | $v['to_name'] = ''; | 158 | $v['to_name'] = ''; |
159 | } | 159 | } |
160 | return $v; | 160 | return $v; |
161 | - },$lists); | 161 | + },$lists?:[]); |
162 | 162 | ||
163 | // 总数 | 163 | // 总数 |
164 | $total = db()->count(sprintf($sql,"count(*)")); | 164 | $total = db()->count(sprintf($sql,"count(*)")); |
-
请 注册 或 登录 后发表评论