diff options
author | Spun Nakandala <supun.nakandala@gmail.com> | 2013-08-30 20:21:11 +0400 |
---|---|---|
committer | Spun Nakandala <supun.nakandala@gmail.com> | 2013-08-30 20:21:11 +0400 |
commit | ae6e4954587ac7747ece40f9a096a2288409ebbf (patch) | |
tree | fcfd6e4dec72ab0e936ef0d0c755cb11137b5f42 /tbl_relation.php | |
parent | 1014d9fef42d3b4fe2121b71cc9ce50a3afe4e6f (diff) |
remove global variables and use super global variables
Diffstat (limited to 'tbl_relation.php')
-rw-r--r-- | tbl_relation.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tbl_relation.php b/tbl_relation.php index 4f9500af63..2dc55d9ad8 100644 --- a/tbl_relation.php +++ b/tbl_relation.php @@ -40,9 +40,6 @@ $scripts->addFile('indexes.js'); * Sets globals from $_POST */ $post_params = array( - 'destination_db', - 'destination_table', - 'destination_column', 'destination_foreign_db', 'destination_foreign_table', 'destination_foreign_column', @@ -95,10 +92,11 @@ $multi_edit_columns_name = isset($_REQUEST['fields_name']) // u p d a t e s f o r I n t e r n a l r e l a t i o n s -if (isset($destination_db) && $cfgRelation['relwork']) { +if (isset($_POST['destination_db']) && $cfgRelation['relwork']) { PMA_handleUpdatesForInternalRelations( - $destination_db, $multi_edit_columns_name, $destination_table, - $destination_column, $cfgRelation, $db, $table, + $_POST['destination_db'], $multi_edit_columns_name, + $_POST['destination_table'], + $_POST['destination_column'], $cfgRelation, $db, $table, isset($existrel) ? $existrel : null ); } // end if (updates for internal relations) @@ -126,7 +124,7 @@ if ($cfgRelation['displaywork'] && isset($display_field)) { } // end if // If we did an update, refresh our data -if (isset($destination_db) && $cfgRelation['relwork']) { +if (isset($_POST['destination_db']) && $cfgRelation['relwork']) { $existrel = PMA_getForeigners($db, $table, '', 'internal'); } if (isset($destination_foreign_db) |