mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
MDL-34082 course restrict modules: typo in MDL-19125 upgrade code.
This commit is contained in:
parent
935c3d5ed2
commit
e08eaf7da3
@ -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');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user