Skip to content

Commit

Permalink
MDL-65313 core_favourite: fix issue with groups_delete_group
Browse files Browse the repository at this point in the history
  • Loading branch information
sarjona committed May 6, 2019
1 parent 6af01fb commit c6631a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion group/lib.php
Expand Up @@ -576,7 +576,7 @@ function groups_delete_group($grouporid) {
// Delete all favourite records for all users relating to this conversation.
// Whilst not ideal, we can't use the component service as it doesn't exist here, so must do this manually.
$params = ['component' => 'core_message', 'itemtype' => 'message_conversations', 'contextid' => $conversation->contextid];
$DB->delete_records_select('favourite', ' component = :component AND itemtype = :itemtype AND contextid = "contextid',
$DB->delete_records_select('favourite', ' component = :component AND itemtype = :itemtype AND contextid = :contextid',
$params);
}

Expand Down

0 comments on commit c6631a1

Please sign in to comment.