Missing global variables

This commit is contained in:
Marc Delisle 2012-07-04 11:07:01 -04:00
parent 75e283ab9c
commit 5223035aeb

View File

@ -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
*/