mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Fixes #547 - PM plugin issuse (outbox messages not rendering, outbox count, and outbox date)
This commit is contained in:
@@ -620,7 +620,7 @@ class private_message
|
|||||||
$qry = "
|
$qry = "
|
||||||
SELECT SQL_CALC_FOUND_ROWS pm.*, u.user_image, u.user_name FROM #private_msg AS pm
|
SELECT SQL_CALC_FOUND_ROWS pm.*, u.user_image, u.user_name FROM #private_msg AS pm
|
||||||
LEFT JOIN #user AS u ON u.user_id = pm.pm_to
|
LEFT JOIN #user AS u ON u.user_id = pm.pm_to
|
||||||
WHERE pm.pm_from='{$uid}' AND pm.pm_sent_del=0
|
WHERE pm.pm_from='{$uid}' AND pm.pm_read_del=0
|
||||||
ORDER BY pm.pm_sent DESC
|
ORDER BY pm.pm_sent DESC
|
||||||
LIMIT ".$from.', '.$limit;
|
LIMIT ".$from.', '.$limit;
|
||||||
|
|
||||||
|
@@ -67,7 +67,7 @@ class pmbox_manager
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$qry = "SELECT count(pm.pm_from) AS total, SUM(pm.pm_size)/1024 size, SUM(pm.pm_read = 0) as unread FROM `#private_msg` as pm WHERE pm.pm_from = ".USERID." AND pm.pm_sent_del = 0";
|
$qry = "SELECT count(pm.pm_from) AS total, SUM(pm.pm_size)/1024 size, SUM(pm.pm_read = 0) as unread FROM `#private_msg` as pm WHERE pm.pm_from = ".USERID." AND pm.pm_read_del = 0";
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($pm_info[$which]['total']))
|
if(!isset($pm_info[$which]['total']))
|
||||||
|
@@ -159,7 +159,7 @@ $PM_OUTBOX_TABLE = "
|
|||||||
<td class='forumheader3'>{PM_READ_ICON}</td>
|
<td class='forumheader3'>{PM_READ_ICON}</td>
|
||||||
<td class='forumheader3'>{PM_SUBJECT=link,outbox}{PM_ATTACHMENT_ICON}</td>
|
<td class='forumheader3'>{PM_SUBJECT=link,outbox}{PM_ATTACHMENT_ICON}</td>
|
||||||
<td class='forumheader3'>{PM_TO=link}</td>
|
<td class='forumheader3'>{PM_TO=link}</td>
|
||||||
<td class='forumheader3'>{PM_DATE=lapse}</td>
|
<td class='forumheader3'>{PM_DATE}</td>
|
||||||
<td class='forumheader3' style='text-align: center'>{PM_DELETE=outbox}</td>
|
<td class='forumheader3' style='text-align: center'>{PM_DELETE=outbox}</td>
|
||||||
</tr>
|
</tr>
|
||||||
";
|
";
|
||||||
|
Reference in New Issue
Block a user