From e6c7aaad340854ae1aab19582c1f5529df165102 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 22 Aug 2010 08:52:15 -0400 Subject: [PATCH] simplify logic and rename parameter --- sql.php | 10 ++++------ tbl_structure.php | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/sql.php b/sql.php index a3ae0cfe1..12c6ac582 100644 --- a/sql.php +++ b/sql.php @@ -178,8 +178,7 @@ if ($do_confirm) { - - + ' . "\n" @@ -465,12 +464,11 @@ if (isset($GLOBALS['show_as_php']) || !empty($GLOBALS['validatequery'])) { } // end if ($purge) // If a column gets dropped, do relation magic. - if (isset($cpurge) && $cpurge == '1' && isset($purgekey) - && strlen($db) && strlen($table) && !empty($purgekey)) { + if (isset($dropped_column) && strlen($db) && strlen($table) && !empty($dropped_column)) { require_once './libraries/relation_cleanup.lib.php'; - PMA_relationsCleanupColumn($db, $table, $purgekey); + PMA_relationsCleanupColumn($db, $table, $dropped_column); - } // end if column PMA_* purge + } // end if column was dropped } // end else "didn't ask to see php code" // No rows returned -> move back to the calling page diff --git a/tbl_structure.php b/tbl_structure.php index c9c7fd3a1..e1b29f90c 100644 --- a/tbl_structure.php +++ b/tbl_structure.php @@ -392,7 +392,7 @@ while ($row = PMA_DBI_fetch_assoc($fields_rs)) { -