mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'MDL-52928-master' of git://github.com/andrewnicols/moodle
This commit is contained in:
commit
c116a115d9
2 changed files with 64 additions and 11 deletions
|
@ -764,7 +764,7 @@ function message_get_recent_conversations($user, $limitfrom=0, $limitto=100) {
|
|||
) messagesubset ON messagesubset.messageid = message.id
|
||||
JOIN {user} otheruser ON (message.useridfrom = :userid4 AND message.useridto = otheruser.id)
|
||||
OR (message.useridto = :userid5 AND message.useridfrom = otheruser.id)
|
||||
LEFT JOIN {message_contacts} contact ON contact.userid = :userid3 AND contact.userid = otheruser.id
|
||||
LEFT JOIN {message_contacts} contact ON contact.userid = :userid3 AND contact.contactid = otheruser.id
|
||||
WHERE otheruser.deleted = 0 AND message.notification = 0
|
||||
ORDER BY message.timecreated DESC";
|
||||
$params = array(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue