Permalink
Browse files

MDL-27652 messages: fix varaibles names in message_send function

Signed-off-by: Ruslan Kabalin <ruslan.kabalin@luns.net.uk>
  • Loading branch information...
1 parent f8351d0 commit 2af2210c4efdb6f0013ec878321bc381c160a9cd Ruslan Kabalin committed May 27, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/messagelib.php
View
@@ -58,11 +58,11 @@ function message_send($eventdata) {
if (is_int($eventdata->userto)) {
mtrace('message_send() userto is a user ID when it should be a user object');
- $eventdata->userto = $DB->get_record('user', array('id' => $eventdata->useridto));
+ $eventdata->userto = $DB->get_record('user', array('id' => $eventdata->userto));
}
if (is_int($eventdata->userfrom)) {
mtrace('message_send() userfrom is a user ID when it should be a user object');
- $eventdata->userfrom = $DB->get_record('user', array('id' => $message->userfrom));
+ $eventdata->userfrom = $DB->get_record('user', array('id' => $eventdata->userfrom));
}
//after how long inactive should the user be considered logged off?

0 comments on commit 2af2210

Please sign in to comment.