Permalink
Browse files

MDL-37247 mod_forum: removing unnecessary variable in the get_forums …

…web service
  • Loading branch information...
1 parent 0c246ae commit faf3016f353d1083767605fc713d9f9832c7d9d9 @markn86 markn86 committed with danpoltawski Jan 10, 2013
Showing with 0 additions and 2 deletions.
  1. +0 −2 mod/forum/externallib.php
@@ -93,8 +93,6 @@ public static function get_forums_by_courses($courseids = array()) {
}
// Set the forum object.
$forum = $forums[$forumid];
- // Get the course module.
- $cm = get_coursemodule_from_instance('forum', $forum->id, 0, false, MUST_EXIST);
// Get the module context.
$context = context_module::instance($cm->id);
// Check they have the view forum capability.

0 comments on commit faf3016

Please sign in to comment.