Skip to content

Commit

Permalink
Fix Output Mail
Browse files Browse the repository at this point in the history
  • Loading branch information
Chifth committed Aug 4, 2024
1 parent 559cc74 commit efa2535
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/mail/includes/output.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@

if ($total) {
$req = $db->query(
"SELECT `users`.*, MAX(`cms_mail`.`time`) AS `time`
"SELECT `users`.`id`, `users`.`name`, `users`.`rights`, `users`.`lastdate`, `users`.`ip`, MAX(`cms_mail`.`time`) AS `time`
FROM `cms_mail`
LEFT JOIN `users` ON `cms_mail`.`from_id`=`users`.`id`
LEFT JOIN `cms_contact` ON `cms_mail`.`from_id`=`cms_contact`.`from_id` AND `cms_contact`.`user_id`='" . $user->id . "'
WHERE `cms_mail`.`user_id`='" . $user->id . "'
AND `cms_mail`.`delete`!='" . $user->id . "'
AND `cms_mail`.`sys`='0'
AND `cms_contact`.`ban`!='1'
GROUP BY `cms_mail`.`from_id`
GROUP BY `users`.`id`, `users`.`name`, `users`.`rights`, `users`.`lastdate`, `users`.`ip`,
ORDER BY MAX(`cms_mail`.`time`) DESC
LIMIT " . $start . ',' . $user->config->kmess
);
Expand Down

0 comments on commit efa2535

Please sign in to comment.