From: stronk7 Date: Sat, 30 Sep 2006 11:09:44 +0000 (+0000) Subject: Ah! forgot to interchange keys and values! X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=87c6baf4a1fab69a621e6661799f4077911c18d2;p=moodle.git Ah! forgot to interchange keys and values! --- diff --git a/lib/ddllib.php b/lib/ddllib.php index bf956e56df..d4d1636ab1 100644 --- a/lib/ddllib.php +++ b/lib/ddllib.php @@ -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