From 09fc9a69abd8c9690380c1df242cc759af1fb7d5 Mon Sep 17 00:00:00 2001 From: Skylar Kelty Date: Fri, 31 Mar 2017 16:12:48 +0100 Subject: [PATCH] MDL-58456 chat: Add missing new in throw --- mod/chat/classes/external.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/chat/classes/external.php b/mod/chat/classes/external.php index 50a962e8ce5..0e1dcd16a6f 100644 --- a/mod/chat/classes/external.php +++ b/mod/chat/classes/external.php @@ -106,7 +106,7 @@ class mod_chat_external extends external_api { // Get the unique chat session id. // Since we are going to use the chat via Web Service requests we set the ajax version (since it's the most similar). if (!$chatsid = chat_login_user($chat->id, 'ajax', $groupid, $course)) { - throw moodle_exception('cantlogin', 'chat'); + throw new moodle_exception('cantlogin', 'chat'); } $result = array();