Merge branch 'MDL-55112-master' of git://github.com/junpataleta/moodle

This commit is contained in:
Dan Poltawski 2016-07-11 14:42:06 +01:00
commit 8846f9950f

View File

@ -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);