mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
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:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user