diff --git a/mod/chat/locallib.php b/mod/chat/locallib.php index 31ea0c1e1ad..21dd977c88e 100644 --- a/mod/chat/locallib.php +++ b/mod/chat/locallib.php @@ -237,6 +237,7 @@ class user_message implements renderable { */ public function __construct($senderprofile, $sendername, $avatar, $mymessageclass, $time, $message, $theme) { + $this->senderprofile = $senderprofile; $this->sendername = $sendername; $this->avatar = $avatar; $this->mymessageclass = $mymessageclass;