mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-34535-master' of git://github.com/ankitagarwal/moodle
This commit is contained in:
commit
a563bdc119
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user