mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-63692 message: Correct favourite fetch
This commit is contained in:
parent
ffd303146f
commit
43f6899289
@ -963,7 +963,7 @@ class api {
|
||||
global $DB;
|
||||
|
||||
// Get the context for this conversation.
|
||||
$conversation = $DB->get_records('message_conversations', ['id' => $conversationid]);
|
||||
$conversation = $DB->get_record('message_conversations', ['id' => $conversationid]);
|
||||
$userctx = \context_user::instance($userid);
|
||||
if (empty($conversation->contextid)) {
|
||||
// When the conversation hasn't any contextid value defined, the favourite will be added to the user context.
|
||||
|
Loading…
x
Reference in New Issue
Block a user