Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhishek Kandoi <abhikandoi2000@gmail.com>2013-05-02 10:51:39 +0400
committerAbhishek Kandoi <abhikandoi2000@gmail.com>2013-05-02 10:51:39 +0400
commit890089e0f4750f138e845fd6cfb05d5e5840ecdd (patch)
treeced62fd1b4fc63908a9c603a841cc8a3e3c13d13 /tbl_get_field.php
parent0b3b113b397e2c2ca01e376addc864d21a954185 (diff)
Fixed creation of global variables where_clause and transform_key
Diffstat (limited to 'tbl_get_field.php')
-rw-r--r--tbl_get_field.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/tbl_get_field.php b/tbl_get_field.php
index f236d91fa5..98085a2b45 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')