From 70d09e17ab196973f04202cd2b10a80f8278f715 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Wed, 13 Jan 2010 22:25:22 +0000 Subject: [PATCH] upgrade.php: - fix typo in _drop_index and _add_index ($tabe -> $table) that broke changing table names via $CONF git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@794 a1433add-5e2c-0410-b055-b7f2511e0802 --- upgrade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upgrade.php b/upgrade.php index 25293496..a5f745c5 100644 --- a/upgrade.php +++ b/upgrade.php @@ -216,7 +216,7 @@ function db_query_parsed($sql, $ignore_errors = 0, $attach_mysql = "") { function _drop_index ($table, $index) { global $CONF; - $tabe = table_by_key ($table); + $table = table_by_key ($table); if ($CONF['database_type'] == 'mysql' || $CONF['database_type'] == 'mysqli' ) { return "ALTER TABLE $table DROP INDEX $index"; @@ -230,7 +230,7 @@ function _drop_index ($table, $index) { function _add_index($table, $indexname, $fieldlist) { global $CONF; - $tabe = table_by_key ($table); + $table = table_by_key ($table); if ($CONF['database_type'] == 'mysql' || $CONF['database_type'] == 'mysqli' ) { return "ALTER TABLE $table ADD INDEX `$indexname` ( `$fieldlist` )";