mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-26 03:30:48 +03:00
fix paging fro array GET params
This commit is contained in:
parent
1d5dc6cf17
commit
f7e072ac3c
|
@ -1250,13 +1250,9 @@ class ModuleViewer extends Module {
|
|||
$iPrevPage = $iCurrentPage>1 ? $iCurrentPage-1 : false;
|
||||
|
||||
$sGetParams='';
|
||||
foreach ($aGetParamsList as $sName => $sValue) {
|
||||
$sGetParams.=$sName.'='.urlencode($sValue).'&';
|
||||
if (is_string($aGetParamsList) or count($aGetParamsList)){
|
||||
$sGetParams='?'.(is_array($aGetParamsList) ? http_build_query($aGetParamsList,'','&') : $aGetParamsList);
|
||||
}
|
||||
if ($sGetParams!='') {
|
||||
$sGetParams='?'.trim($sGetParams,'&');
|
||||
}
|
||||
|
||||
$aPaging=array(
|
||||
'aPagesLeft' => $aPagesLeft,
|
||||
'aPagesRight' => $aPagesRight,
|
||||
|
|
Loading…
Reference in a new issue