]> git.mjollnir.org Git - moodle.git/commitdiff
Ensuring we always retrofit lowercase tables. Part of MDL-10413.
authorstronk7 <stronk7>
Tue, 17 Jul 2007 18:49:22 +0000 (18:49 +0000)
committerstronk7 <stronk7>
Tue, 17 Jul 2007 18:49:22 +0000 (18:49 +0000)
Merged from MOODLE_18_STABLE

admin/xmldb/actions/new_table_from_mysql/new_table_from_mysql.class.php

index 5d0480912295eb65aed43eafff381567d4aa7328..4155403f861eabd3dea2e05337d9862eae76c852 100644 (file)
@@ -88,7 +88,7 @@ class new_table_from_mysql extends XMLDBAction {
             $dbtables = $db->MetaTables('TABLES');
             $selecttables = array();
             foreach ($dbtables as $dbtable) {
-                $dbtable = str_replace($CFG->prefix, '', $dbtable);
+                $dbtable = strtolower(str_replace($CFG->prefix, '', $dbtable));
                 $i = $structure->findTableInArray($dbtable);
                 if ($i === NULL) {
                     $selecttables[$dbtable] = $dbtable;