diff --git a/mod/chat/lib.php b/mod/chat/lib.php index 870cf5f473f..109fdad9178 100644 --- a/mod/chat/lib.php +++ b/mod/chat/lib.php @@ -1025,9 +1025,10 @@ function chat_format_message_theme ($message, $chatuser, $currentuser, $grouping // It cannot be called here as HTML-isation interferes with special case // recognition, but *must* be called on any user-sourced text to be inserted // into $outmain. - $options = new stdClass(); - $options->para = false; - $options->blanktarget = true; + $options = [ + 'para' => false, + 'blanktarget' => true, + ]; // And now check for special cases. $special = false;