Prevent duplicate sort, order and page GET VARs in the URL when Clicking to Sort a field or Clicking a page number. We now unset the GET VAR arrays before recreating the URL GET Strings

This commit is contained in:
johnnyq
2023-07-08 14:40:00 -04:00
parent e7572c9e8f
commit 1bacabc72b
45 changed files with 58 additions and 47 deletions

View File

@@ -7,6 +7,12 @@
* Should not be accessed directly, but called from other pages
*/
// Unset Array Var to prevent Duplicate Get VARs
$get_copy = $_GET; // create a copy of the $_GET array
//unset($get_copy['page']);
unset($get_copy['sort']);
unset($get_copy['order']);
// Paging
if (isset($_GET['page'])) {
$page = intval($_GET['page']);