Skip to content

Commit

Permalink
Fix issue with session_var not properly using class variable
Browse files Browse the repository at this point in the history
  • Loading branch information
cigamit authored Feb 22, 2025
1 parent da2d844 commit 52c25cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/html_filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,16 @@ public function __construct($form_header = '', $form_action = '', $form_id = '',
300 => __('%d Minutes', 5)
);

if ($session_var == '') {
if ($this->session_var == '') {
$action = get_nfilter_request_var('action');
$tab = get_nfilter_request_var('tab');

if ($action != '') {
$session_var .= basename(get_current_page(), '.php') . '_' . $action;
$this->session_var .= basename(get_current_page(), '.php') . '_' . $action;
} elseif ($tab != '') {
$session_var .= basename(get_current_page(), '.php') . '_' . $tab;
$this->session_var .= basename(get_current_page(), '.php') . '_' . $tab;
} else {
$session_var .= basename(get_current_page(), '.php');
$this->session_var .= basename(get_current_page(), '.php');
}
}

Expand Down

0 comments on commit 52c25cf

Please sign in to comment.