Permalink
Browse files

Merge branch 'MDL-34082_23' of git://github.com/timhunt/moodle into M…

…OODLE_23_STABLE
  • Loading branch information...
stronk7 committed Sep 12, 2012
2 parents 7737d24 + b06143c commit bd390545b12602b8c5300be0d5476a08fc996aa0
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/db/upgrade.php
View
@@ -248,7 +248,7 @@ function xmldb_main_upgrade($oldversion) {
if ($CFG->restrictmodulesfor === 'all') {
$courses = $DB->get_records_menu('course', array(), 'id', 'id, 1');
} else if ($CFG->restrictmodulesfor === 'requested') {
- $courses = $DB->get_records_menu('course', array('retrictmodules' => 1), 'id', 'id, 1');
+ $courses = $DB->get_records_menu('course', array('restrictmodules' => 1), 'id', 'id, 1');
} else {
$courses = array();
}
@@ -314,7 +314,7 @@ function xmldb_main_upgrade($oldversion) {
if ($oldversion < 2012031500.02) {
- // Define field retrictmodules to be dropped from course
+ // Define field restrictmodules to be dropped from course
$table = new xmldb_table('course');
$field = new xmldb_field('restrictmodules');

0 comments on commit bd39054

Please sign in to comment.