MDL-19125 upgrade: Fixed typo
authorSam Hemelryk <sam@moodle.com>
Sun, 18 Mar 2012 22:01:50 +0000 (11:01 +1300)
committerSam Hemelryk <sam@moodle.com>
Sun, 18 Mar 2012 22:01:50 +0000 (11:01 +1300)
lib/db/upgrade.php

index c6eaae7..dedb1bf 100644 (file)
@@ -285,7 +285,7 @@ function xmldb_main_upgrade($oldversion) {
 
         // Define field retrictmodules to be dropped from course
         $table = new xmldb_table('course');
-        $field = new xmldb_field('retrictmodules');
+        $field = new xmldb_field('restrictmodules');
 
         // Conditionally launch drop field requested
         if ($dbman->field_exists($table, $field)) {