Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-34535 message: userto should use is_number instead of is_init

  • Loading branch information...
commit 9b18d9ce599b4632f8fc36eb37ddb863aebe8135 1 parent c36de79
@ankitagarwal ankitagarwal authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/messagelib.php
View
2  lib/messagelib.php
@@ -58,7 +58,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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.