Skip to content

Commit

Permalink
MDL-60590 core_cohort: removed unused variables from search_cohorts()
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjnelson committed Nov 6, 2017
1 parent 9b0f292 commit a764855
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cohort/externallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ public static function search_cohorts_parameters() {
* @return array
*/
public static function search_cohorts($query, $context, $includes = 'parents', $limitfrom = 0, $limitnum = 25) {
global $DB, $CFG, $PAGE;
global $CFG;
require_once($CFG->dirroot . '/cohort/lib.php');

$params = self::validate_parameters(self::search_cohorts_parameters(), array(
Expand All @@ -341,7 +341,6 @@ public static function search_cohorts($query, $context, $includes = 'parents', $
$limitnum = $params['limitnum'];

self::validate_context($context);
$output = $PAGE->get_renderer('tool_lp');

$manager = has_capability('moodle/cohort:manage', $context);
if (!$manager) {
Expand Down

0 comments on commit a764855

Please sign in to comment.