MDL-42465 mod_chat: instantiated message object before declaring properties

This commit is contained in:
Mark Nelson
2013-10-22 16:12:20 +08:00
parent b6ced2f7e4
commit 78855a6c7b
+1
View File
@@ -39,6 +39,7 @@ if (!$cm = get_coursemodule_from_instance('chat', $chatuser->chatid, $courseid))
}
if ($beep) {
$message = new stdClass();
$message->chatid = $chatuser->chatid;
$message->userid = $chatuser->userid;
$message->groupid = $chatuser->groupid;