diff options
author | Marc Delisle <marc@infomarc.info> | 2012-07-04 19:25:14 +0400 |
---|---|---|
committer | Marc Delisle <marc@infomarc.info> | 2012-07-04 19:25:14 +0400 |
commit | 0c9effac86187ac7d1a015ec8ef25a3ac3ab70fa (patch) | |
tree | 9e4fab2aa5858288787b2c5e4e50a5d1a578ec4d /db_qbe.php | |
parent | 5223035aeb27b3ca12d259841ae50c2168354fec (diff) |
Missing global variables for additional criteria lines
Diffstat (limited to 'db_qbe.php')
-rw-r--r-- | db_qbe.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/db_qbe.php b/db_qbe.php index e429193896..f27bd1f1b8 100644 --- a/db_qbe.php +++ b/db_qbe.php @@ -26,6 +26,22 @@ foreach ($post_params as $one_post_param) { } /** + * Sets globals from $_POST patterns, for Or* variables + * (additional criteria lines) + */ + +$post_patterns = array( + '/^Or/i' +); +foreach (array_keys($_POST) as $post_key) { + foreach ($post_patterns as $one_post_pattern) { + if (preg_match($one_post_pattern, $post_key)) { + $GLOBALS[$post_key] = $_POST[$post_key]; + } + } +} + +/** * Gets the relation settings */ $cfgRelation = PMA_getRelationsParam(); |