mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 20:53:53 +01:00
Merge branch 'MDL-55112-master' of git://github.com/junpataleta/moodle
This commit is contained in:
commit
8846f9950f
@ -633,7 +633,7 @@ class mod_forum_external extends external_api {
|
||||
$warnings = array();
|
||||
|
||||
// Request and permission validation.
|
||||
$forum = $DB->get_record('forum', array('id' => $params['forumid']), 'id', MUST_EXIST);
|
||||
$forum = $DB->get_record('forum', array('id' => $params['forumid']), '*', MUST_EXIST);
|
||||
list($course, $cm) = get_course_and_cm_from_instance($forum, 'forum');
|
||||
|
||||
$context = context_module::instance($cm->id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user