Permalink
Browse files

Fixing bug #4621 typos in mysql 3.23 workaround in message backup. Do…

…es not need merge to HEAD, old mysql support out
  • Loading branch information...
1 parent aacc5fb commit 96c400459855f487ffc9cc4320247f8d6a31de55 mjollnir_ committed Jan 23, 2006
Showing with 2 additions and 2 deletions.
  1. +2 −2 message/lib.php
View
@@ -1027,7 +1027,7 @@ function message_get_participants() {
// do it using php since mysql < 4 doesn't like the unions.
$users = array();
- if ($message_from_users = get_records_sql("SELECT DISTINCT userfrom as id, 1 FROM {$CFG->prefix}message")) {
+ if ($message_from_users = get_records_sql("SELECT DISTINCT useridfrom as id, 1 FROM {$CFG->prefix}message")) {
foreach ($message_from_users as $user) {
$users[$user->id] = $user;
}
@@ -1052,7 +1052,7 @@ function message_get_participants() {
$users[$user->id] = $user;
}
}
- if ($contact_to_users = get_records_sql("SELECT DISTINCT mc.contactid as id,1 FROM {$CFG->prefix}message_contacts")) {
+ if ($contact_to_users = get_records_sql("SELECT DISTINCT contactid as id,1 FROM {$CFG->prefix}message_contacts")) {
foreach ($contact_to_users as $user) {
$users[$user->id] = $user;
}

0 comments on commit 96c4004

Please sign in to comment.