Fixed error in filter pagination

This commit is contained in:
Daniel Maya 2017-06-20 10:52:02 +02:00
parent e56d147345
commit a81b5b8239
1 changed files with 7 additions and 5 deletions

View File

@ -1616,13 +1616,15 @@ function ui_pagination ($count, $url = false, $offset = 0,
// Pagination links for users include delete, create and other params, now not use these params, and not retry the previous action when go to pagination link.
$remove = array("user_del","disable_user","delete_user");
$finalUrl = $config['homeurl'].'?';
foreach($_GET as $index => $get){
if(!in_array($index, $remove)){
$finalUrl .= $index.'='.$get.'&';
$url = explode("&",$url);
$finalUrl = array();
foreach ($url as $key => $value) {
if(strpos($value, $remove[0]) === false && strpos($value, $remove[1]) === false && strpos($value, $remove[2]) === false){
array_push($finalUrl,$value);
}
}
$url = $finalUrl;
$url = implode("&",$finalUrl);
/*
URL passed render links with some parameter