From f9c5c6f5990ce901086808c2f496059a17533bc5 Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Wed, 3 Apr 2024 11:19:39 +0800 Subject: [PATCH] MDL-81413 mod_chat: change options parameter to array --- mod/chat/lib.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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;