...
|
...
|
@@ -127,7 +127,7 @@ class MailList extends Base { |
|
|
$filed = '`id`,`uid`,`subject`,`from`,`from_name`,`flagged`,`seen`,`udate`,`folder_id`,`is_file`,`description`,`lists`.`email_id`,`to_name`';
|
|
|
|
|
|
if($extSql){
|
|
|
$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);
|
|
|
$sql = "select %s from `lists` left join `fob_hot_mail` on `lists`.`id` = `fob_hot_mail`.`lists_id` where `fob_hot_mail`.`lists_id` > 0 and `fob_hot_mail`.`folder` = '{$extSql}' and ".dbWhere($where);
|
|
|
}else{
|
|
|
if($folder == '收件箱' || $folder == '发件箱'){
|
|
|
$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);
|
...
|
...
|
|