From: stronk7 Date: Tue, 17 Jul 2007 18:49:22 +0000 (+0000) Subject: Ensuring we always retrofit lowercase tables. Part of MDL-10413. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=40f5b3011a6ba2b16326ddd132a489820d6f6989;p=moodle.git Ensuring we always retrofit lowercase tables. Part of MDL-10413. Merged from MOODLE_18_STABLE --- diff --git a/admin/xmldb/actions/new_table_from_mysql/new_table_from_mysql.class.php b/admin/xmldb/actions/new_table_from_mysql/new_table_from_mysql.class.php index 5d04809122..4155403f86 100644 --- a/admin/xmldb/actions/new_table_from_mysql/new_table_from_mysql.class.php +++ b/admin/xmldb/actions/new_table_from_mysql/new_table_from_mysql.class.php @@ -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;