Skip to content

Commit

Permalink
minor developer debug issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cigamit committed Mar 30, 2016
1 parent cecccdd commit 231dabf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/html_utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -526,12 +526,12 @@ function validate_store_request_vars($filters, $sess_prefix = '') {
@arg $default_value - the default value to use if values cannot be obtained using
the session or request array */
function load_current_session_value($request_var_name, $session_var_name, $default_value) {
if (isset($_REQUEST[$request_var_name])) {
$_SESSION[$session_var_name] = $_REQUEST[$request_var_name];
if (isset_request_var($request_var_name)) {
$_SESSION[$session_var_name] = get_request_var($request_var_name);
}elseif (isset($_SESSION[$session_var_name])) {
$_REQUEST[$request_var_name] = $_SESSION[$session_var_name];
set_request_var($request_var_name, $_SESSION[$session_var_name]);
}else{
$_REQUEST[$request_var_name] = $default_value;
set_request_var($request_var_name, $default_value);
}
}

Expand Down

0 comments on commit 231dabf

Please sign in to comment.