Skip to content
Snippets Groups Projects
Commit a1b93588 authored by Friederike Schwager's avatar Friederike Schwager Committed by Friederike Schwager
Browse files

bugfix: don't send message to the user who created a new annotation

parent 3b88db98
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,7 @@ class pdfannotator_comment {
$messagetext->html = pdfannotator_format_notification_message_html($course, $cm, $context, get_string('modulename', 'pdfannotator'), $cm->name, $question, 'newquestion');
$messagetext->url = $question->urltoanswer;
foreach ($recipients as $recipient) {
if ($recipient == $USER) {
if ($recipient->id == $USER->id) {
continue;
}
$messageid = pdfannotator_notify_manager($recipient, $course, $cm, 'newquestion', $messagetext, $anonymous);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment