From 5223035aeb27b3ca12d259841ae50c2168354fec Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 4 Jul 2012 11:07:01 -0400 Subject: [PATCH] Missing global variables --- db_qbe.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/db_qbe.php b/db_qbe.php index 0f5d9054f1..e429193896 100644 --- a/db_qbe.php +++ b/db_qbe.php @@ -11,6 +11,20 @@ */ require_once 'libraries/common.inc.php'; +/** + * Sets globals from $_POST + */ +$post_params = array( + 'Field', + 'Show', + 'Sort' +); +foreach ($post_params as $one_post_param) { + if (isset($_POST[$one_post_param])) { + $GLOBALS[$one_post_param] = $_POST[$one_post_param]; + } +} + /** * Gets the relation settings */