From 347fca5b8683e9eee3c2b157370acdd7706a2824 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 25 Aug 2011 08:49:31 +0200 Subject: [PATCH] Use same order of database and table params as elsewhere --- libraries/tbl_select.lib.php | 4 ++-- tbl_select.php | 2 +- tbl_zoom_select.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/tbl_select.lib.php b/libraries/tbl_select.lib.php index 07c5883e2e..35fbe6f28e 100644 --- a/libraries/tbl_select.lib.php +++ b/libraries/tbl_select.lib.php @@ -40,13 +40,13 @@ function PMA_tbl_setTitle($propertiesIconic, $pmaThemeImage) * Gets all the fields of a table along with their types, collations * and whether null or not. * - * @param string $table Selected table * @param string $db Selected database + * @param string $table Selected table * * @return array Array containing the field list, field types, collations * and null constraint */ -function PMA_tbl_getFields($table,$db) +function PMA_tbl_getFields($db, $table) { // Gets the list and number of fields $fields = PMA_DBI_get_columns($db, $table, true); diff --git a/tbl_select.php b/tbl_select.php index b9c23d534f..ee5da27078 100644 --- a/tbl_select.php +++ b/tbl_select.php @@ -63,7 +63,7 @@ if (! isset($param) || $param[0] == '') { $err_url = $goto . '?' . PMA_generate_common_url($db, $table); // Gets the list and number of fields - list($fields_list, $fields_type, $fields_collation, $fields_null, $geom_column_present) = PMA_tbl_getFields($table,$db); + list($fields_list, $fields_type, $fields_collation, $fields_null, $geom_column_present) = PMA_tbl_getFields($db, $table); $fields_cnt = count($fields_list); // retrieve keys into foreign fields, if any diff --git a/tbl_zoom_select.php b/tbl_zoom_select.php index 7b1188975f..743b893c19 100644 --- a/tbl_zoom_select.php +++ b/tbl_zoom_select.php @@ -73,7 +73,7 @@ $err_url = $goto . '?' . PMA_generate_common_url($db, $table); // Gets the list and number of fields -list($fields_list, $fields_type, $fields_collation, $fields_null) = PMA_tbl_getFields($table,$db); +list($fields_list, $fields_type, $fields_collation, $fields_null) = PMA_tbl_getFields($db, $table); $fields_cnt = count($fields_list); // retrieve keys into foreign fields, if any