Skip to content

Commit

Permalink
Merge branch 'MDL-34082_23' of git://github.com/timhunt/moodle into M…
Browse files Browse the repository at this point in the history
…OODLE_23_STABLE
  • Loading branch information
stronk7 committed Sep 12, 2012
2 parents 7737d24 + b06143c commit bd39054
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/db/upgrade.php
Expand Up @@ -248,7 +248,7 @@ function xmldb_main_upgrade($oldversion) {
if ($CFG->restrictmodulesfor === 'all') { if ($CFG->restrictmodulesfor === 'all') {
$courses = $DB->get_records_menu('course', array(), 'id', 'id, 1'); $courses = $DB->get_records_menu('course', array(), 'id', 'id, 1');
} else if ($CFG->restrictmodulesfor === 'requested') { } 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 { } else {
$courses = array(); $courses = array();
} }
Expand Down Expand Up @@ -314,7 +314,7 @@ function xmldb_main_upgrade($oldversion) {


if ($oldversion < 2012031500.02) { 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'); $table = new xmldb_table('course');
$field = new xmldb_field('restrictmodules'); $field = new xmldb_field('restrictmodules');


Expand Down

0 comments on commit bd39054

Please sign in to comment.