作者 邓超

x

@@ -154,7 +154,7 @@ class MailList extends Base { @@ -154,7 +154,7 @@ class MailList extends Base {
154 if($extSql){ 154 if($extSql){
155 $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); 155 $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);
156 }else{ 156 }else{
157 - if($folder == '收件箱' || $folder == '发件箱'){ 157 + if(in_array($folder,['收件箱','发件箱','垃圾箱'])){
158 $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); 158 $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);
159 }else{ 159 }else{
160 $sql = "select %s from `lists` where ".dbWhere($where); 160 $sql = "select %s from `lists` where ".dbWhere($where);