]> git.mjollnir.org Git - moodle.git/commitdiff
Ah! forgot to interchange keys and values!
authorstronk7 <stronk7>
Sat, 30 Sep 2006 11:09:44 +0000 (11:09 +0000)
committerstronk7 <stronk7>
Sat, 30 Sep 2006 11:09:44 +0000 (11:09 +0000)
lib/ddllib.php

index bf956e56df7ccdff29a016973404c3ef8707bda3..d4d1636ab1423d33b65370772d7f94f71c422551 100644 (file)
@@ -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