Fixed error in filter pagination

This commit is contained in:
Daniel Maya 2017-06-20 10:52:02 +02:00
parent e56d147345
commit a81b5b8239

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. // 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"); $remove = array("user_del","disable_user","delete_user");
$finalUrl = $config['homeurl'].'?'; $url = explode("&",$url);
foreach($_GET as $index => $get){
if(!in_array($index, $remove)){ $finalUrl = array();
$finalUrl .= $index.'='.$get.'&'; 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 URL passed render links with some parameter