From: gbateson Date: Wed, 26 Apr 2006 03:26:12 +0000 (+0000) Subject: changed line 10 to: $index = "{$table}_{$field}_idx"; (bug 5315) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2e2a27a9bc195067a17c73390d29bda20ef8701b;p=moodle.git changed line 10 to: $index = "{$table}_{$field}_idx"; (bug 5315) --- diff --git a/mod/hotpot/db/update_to_v2.php b/mod/hotpot/db/update_to_v2.php index 2147a4ff43..c337548e29 100644 --- a/mod/hotpot/db/update_to_v2.php +++ b/mod/hotpot/db/update_to_v2.php @@ -7,7 +7,7 @@ function hotpot_update_to_v2_1_16() { $length = 20; $field = 'name'; $table = 'hotpot_questions'; - $index = "{$table}_{$name}_idx"; + $index = "{$table}_{$field}_idx"; // remove the index hotpot_db_delete_index("{$CFG->prefix}$table", $index);