mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
Ah! forgot to interchange keys and values!
This commit is contained in:
parent
ef18962b00
commit
87c6baf4a1
@ -320,6 +320,7 @@ function find_index_name($xmldb_table, $xmldb_index) {
|
||||
|
||||
/// Check the table exists
|
||||
$metatables = $db->MetaTables();
|
||||
$metatables = array_flip($metatables);
|
||||
$metatables = array_change_key_case($metatables, CASE_LOWER);
|
||||
if (!array_key_exists($tablename, $metatables)) {
|
||||
$db->debug = $olddbdebug; //Re-set original $db->debug
|
||||
|
Loading…
x
Reference in New Issue
Block a user