From b06143c5c2d14c19fdb146857b72ed858522bcc1 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Wed, 12 Sep 2012 11:12:46 +0100 Subject: [PATCH] MDL-34082 course restrict modules: typo in MDL-19125 upgrade code. --- lib/db/upgrade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index 83c73707870..97f3fb27f46 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -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');