Skip to content

Commit

Permalink
Fix 500 in mail
Browse files Browse the repository at this point in the history
  • Loading branch information
Chifth committed Aug 4, 2024
1 parent 40c43b9 commit 559cc74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/mail/includes/input.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`.`user_id`=`users`.`id`
LEFT JOIN `cms_contact` ON `cms_mail`.`user_id`=`cms_contact`.`from_id` AND `cms_contact`.`user_id`='" . $user->id . "'
WHERE `cms_mail`.`from_id`='" . $user->id . "'
AND `cms_mail`.`delete`!='" . $user->id . "'
AND `cms_mail`.`sys`='0'
AND `cms_contact`.`ban`!='1'
GROUP BY `cms_mail`.`user_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 559cc74

Please sign in to comment.