mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merge branch 'MDL-56407-master-2' of git://github.com/junpataleta/moodle
This commit is contained in:
commit
d10ca75b8c
6 changed files with 62 additions and 16 deletions
|
@ -5616,7 +5616,11 @@ function message_is_user_blocked($recipient, $sender = null) {
|
|||
debugging('message_is_user_blocked() is deprecated and is no longer used, please use
|
||||
\core_message\api::is_user_blocked() instead.', DEBUG_DEVELOPER);
|
||||
|
||||
return \core_message\api::is_user_blocked($recipient, $sender);
|
||||
$senderid = null;
|
||||
if ($sender !== null && isset($sender->id)) {
|
||||
$senderid = $sender->id;
|
||||
}
|
||||
return \core_message\api::is_user_blocked($recipient->id, $senderid);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue