diff --git a/model/comment.class.php b/model/comment.class.php index 5f706946fd4e06e6f96685a39c30670ae9e1c53e..fb46b55c3cef8ffadd37166f6ce3c228d8303ed3 100644 --- a/model/comment.class.php +++ b/model/comment.class.php @@ -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);