diff options
author | Abhishek Kandoi <abhikandoi2000@gmail.com> | 2013-05-02 10:51:39 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@suse.cz> | 2013-05-02 12:57:56 +0400 |
commit | 1efb9b303e9d38be5d9f6dd991d09ae65e894728 (patch) | |
tree | 176e4e7599672b682a0b25c2759060aeb7ecad42 /tbl_get_field.php | |
parent | b8e1faf8396ec770bf125f64940e32e556295799 (diff) |
Fixed creation of global variables where_clause and transform_key
Diffstat (limited to 'tbl_get_field.php')
-rw-r--r-- | tbl_get_field.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tbl_get_field.php b/tbl_get_field.php index a537a82d41..ada209f46e 100644 --- a/tbl_get_field.php +++ b/tbl_get_field.php @@ -12,6 +12,20 @@ require_once 'libraries/common.inc.php'; require_once 'libraries/mime.lib.php'; +/** + * Sets globals from $_GET + */ +$get_params = array( + 'where_clause', + 'transform_key' +); + +foreach ($get_params as $one_get_param) { + if (isset($_GET[$one_get_param])) { + $GLOBALS[$one_get_param] = $_GET[$one_get_param]; + } +} + /* Check parameters */ PMA_Util::checkParameters( array('db', 'table', 'where_clause', 'transform_key') |