Merge branch 'MDL-34535-master' of git://github.com/ankitagarwal/moodle

This commit is contained in:
Dan Poltawski 2012-08-20 12:06:50 +08:00
commit a563bdc119

View File

@ -60,7 +60,7 @@ function message_send($eventdata) {
//TODO: we need to solve problems with database transactions here somehow, for now we just prevent transactions - sorry
$DB->transactions_forbidden();
if (is_int($eventdata->userto)) {
if (is_number($eventdata->userto)) {
$eventdata->userto = $DB->get_record('user', array('id' => $eventdata->userto));
}
if (is_int($eventdata->userfrom)) {