1
0
Fork 0
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:
Mzhelskiy Maxim 2011-04-26 19:55:22 +00:00
parent 1d5dc6cf17
commit f7e072ac3c

View file

@ -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,