MDL-77533 customfield: fix exception thrown during handler retrieval.

This commit is contained in:
Paul Holden
2023-03-06 09:05:52 +00:00
parent 556208417d
commit e084865f19
2 changed files with 52 additions and 1 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ abstract class handler {
return $classname::create($itemid);
}
$a = ['component' => s($component), 'area' => s($area)];
throw new \moodle_exception('unknownhandler', 'core_customfield', (object)$a);
throw new \moodle_exception('unknownhandler', 'core_customfield', '', $a);
}
/**