From 40f5b3011a6ba2b16326ddd132a489820d6f6989 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Tue, 17 Jul 2007 18:49:22 +0000 Subject: [PATCH] Ensuring we always retrofit lowercase tables. Part of MDL-10413. Merged from MOODLE_18_STABLE --- .../actions/new_table_from_mysql/new_table_from_mysql.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5