From: stronk7 Date: Wed, 27 Sep 2006 18:47:24 +0000 (+0000) Subject: Fixed bug in PHP generation of indexes. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=97bd35b2849b89fb5df16ea9461911dce2463f20;p=moodle.git Fixed bug in PHP generation of indexes. --- diff --git a/admin/xmldb/actions/view_table_php/view_table_php.class.php b/admin/xmldb/actions/view_table_php/view_table_php.class.php index 66ef963733..88c0abba34 100644 --- a/admin/xmldb/actions/view_table_php/view_table_php.class.php +++ b/admin/xmldb/actions/view_table_php/view_table_php.class.php @@ -768,7 +768,7 @@ class view_table_php extends XMLDBAction { $result .= ' /// Define index ' . $index->getName() . ' ('. ($index->getUnique() ? 'unique' : 'not unique') . ') to be added to ' . $table->getName() . XMLDB_LINEFEED; $result .= ' $table = new XMLDBTable(' . "'" . $table->getName() . "'" . ');' . XMLDB_LINEFEED; $result .= ' $index = new XMLDBIndex(' . "'" . $index->getName() . "'" . ');' . XMLDB_LINEFEED; - $result .= ' $key->setAttributes(' . $index->getPHP(true) . ');' . XMLDB_LINEFEED; + $result .= ' $index->setAttributes(' . $index->getPHP(true) . ');' . XMLDB_LINEFEED; /// Launch the proper DDL $result .= XMLDB_LINEFEED;