diff options
author | Atul Pratap Singh <atulpratapsingh05@gmail.com> | 2012-07-04 13:24:43 +0400 |
---|---|---|
committer | Atul Pratap Singh <atulpratapsingh05@gmail.com> | 2012-07-04 13:24:43 +0400 |
commit | 38b10f042cda97435a3d90b697202c943eda448e (patch) | |
tree | fec8aa48c05601e07bf968f35b7a53e7058438d0 /db_qbe.php | |
parent | 060fe233c2acaca3d045c012c2bb466645f1d21e (diff) |
Use global REQUEST variable at some places, fixes previously filled criteria display
Diffstat (limited to 'db_qbe.php')
-rw-r--r-- | db_qbe.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/db_qbe.php b/db_qbe.php index 258182af1c..01f6638828 100644 --- a/db_qbe.php +++ b/db_qbe.php @@ -265,16 +265,16 @@ for ($x = 0; $x < $col; $x++) { $Sort[$x] = ''; } //end if - if (isset($Sort[$x]) && $Sort[$x] == 'ASC') { - $curSort[$z] = $Sort[$x]; + if (isset($_REQUEST['Sort'][$x]) && $_REQUEST['Sort'][$x] == 'ASC') { + $curSort[$z] = $_REQUEST['Sort'][$x]; $sel = ' selected="selected"'; } else { $sel = ''; } // end if echo ' '; echo '<option value="ASC"' . $sel . '>' . __('Ascending') . '</option>' . "\n"; - if (isset($Sort[$x]) && $Sort[$x] == 'DESC') { - $curSort[$z] = $Sort[$x]; + if (isset($_REQUEST['Sort'][$x]) && $_REQUEST['Sort'][$x] == 'DESC') { + $curSort[$z] = $_REQUEST['Sort'][$x]; $sel = ' selected="selected"'; } else { $sel = ''; @@ -310,9 +310,9 @@ for ($x = 0; $x < $col; $x++) { if (! empty($del_col) && isset($del_col[$x]) && $del_col[$x] == 'on') { continue; } - if (isset($Show[$x])) { + if (isset($_REQUEST['Show'][$x])) { $checked = ' checked="checked"'; - $curShow[$z] = $Show[$x]; + $curShow[$z] = $_REQUEST['Show'][$x]; } else { $checked = ''; } |