Commit c46bf94c authored by sampaioprimo's avatar sampaioprimo

avoid undefined variable error

parent 095ce8b1
......@@ -39,7 +39,15 @@ function smarty_function_query($params, $smarty)
} else {
// Not using _REQUEST here, because it is sometimes directly modified in scripts
if ( $request === NULL ) {
$request = array_merge($_GET, $_POST);
if (!empty($_GET) && !empty($_POST)) {
$request = array_merge($_GET, $_POST);
} else if (!empty($_GET)) {
$request = $_GET;
} else if (!empty($_POST)) {
$request = $_POST;
} else {
$request = array();
}
// Remove Xajax special arguments
foreach ( array('xjxargs', 'xjxr', 'xjx', 'xjxfun', 'xjxr') as $k ) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment