SF.net SVN: postfixadmin:[794] trunk/upgrade.php
Brought to you by:
christian_boltz,
gingerdog
|
From: <chr...@us...> - 2010-01-13 22:25:31
|
Revision: 794
http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=794&view=rev
Author: christian_boltz
Date: 2010-01-13 22:25:22 +0000 (Wed, 13 Jan 2010)
Log Message:
-----------
upgrade.php:
- fix typo in _drop_index and _add_index ($tabe -> $table) that broke
changing table names via $CONF
Modified Paths:
--------------
trunk/upgrade.php
Modified: trunk/upgrade.php
===================================================================
--- trunk/upgrade.php 2009-12-28 21:34:08 UTC (rev 793)
+++ trunk/upgrade.php 2010-01-13 22:25:22 UTC (rev 794)
@@ -216,7 +216,7 @@
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 _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` )";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|