Skip to content

Commit

Permalink
Added message_contacts users to the function,
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Feb 13, 2005
1 parent db837a6 commit 8fee85b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions message/lib.php
Expand Up @@ -981,11 +981,14 @@ function message_get_participants() {
return get_records_sql("SELECT DISTINCT u.id, u.id
FROM {$CFG->prefix}user as u,
{$CFG->prefix}message as m,
{$CFG->prefix}message_read as mr
{$CFG->prefix}message_read as mr,
{$CFG->prefix}message_contacts as mc
WHERE m.useridfrom = u.id
OR m.useridto = u.id
OR mr.useridfrom = u.id
OR mr.useridto = u.id");
OR mr.useridto = u.id
OR mc.userid = u.id
OR mc.contactid = u.id");
}

?>

0 comments on commit 8fee85b

Please sign in to comment.