Skip to content

Commit

Permalink
NOBUG Removing typo: redundant variable assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrd8mz committed Jun 21, 2010
1 parent ec70045 commit 79721bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/enrollib.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function enrol_get_instances($courseid, $enabled) {

$result = $DB->get_records('enrol', array('courseid'=>$courseid, 'status'=>ENROL_INSTANCE_ENABLED), 'sortorder,id');

$enabled = $enabled = explode(',', $CFG->enrol_plugins_enabled);
$enabled = explode(',', $CFG->enrol_plugins_enabled);
foreach ($result as $key=>$instance) {
if (!in_array($instance->enrol, $enabled)) {
unset($result[$key]);
Expand Down

0 comments on commit 79721bd

Please sign in to comment.