diff --git a/mod/hotpot/db/update_to_v2.php b/mod/hotpot/db/update_to_v2.php index 2147a4ff430..c337548e29a 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);