Last active
September 8, 2025 12:25
-
-
Save durzo/1c352621e91ec73be2a68c0abf2d806b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/blocks/quickmail/classes/persistents/message.php b/blocks/quickmail/classes/persistents/message.php | |
| index 039401d1f64..b50b4cf42ef 100644 | |
| --- a/blocks/quickmail/classes/persistents/message.php | |
| +++ b/blocks/quickmail/classes/persistents/message.php | |
| @@ -183,7 +183,7 @@ class message extends \block_quickmail\persistents\persistent { | |
| global $DB; | |
| $messageid = $this->get('id'); | |
| - $cuser = $this->get('user_id'); | |
| + $cuser = (object) ['id' => $this->get('user_id')]; | |
| $course = $DB->get_record('course', ['id' => $this->get('course_id')]); | |
| $coursemsg = new message($messageid); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment