MDL-63168 core_message: fix failures in migrate_message_data task.
This commit is contained in:
@@ -236,7 +236,7 @@ class migrate_message_data extends \core\task\adhoc_task {
|
||||
}
|
||||
|
||||
// Check if we need to mark this message as deleted for the user to.
|
||||
if ($message->timeusertodeleted) {
|
||||
if ($message->timeusertodeleted and ($message->useridfrom != $message->useridto)) {
|
||||
$mua = new \stdClass();
|
||||
$mua->userid = $message->useridto;
|
||||
$mua->messageid = $messageid;
|
||||
|
||||
Reference in New Issue
Block a user