Skip to content

Instantly share code, notes, and snippets.

@konratnox
Created February 12, 2019 12:42
Show Gist options
  • Save konratnox/7c85a53d946e0c3a9ec17fb65fe8eda7 to your computer and use it in GitHub Desktop.
Save konratnox/7c85a53d946e0c3a9ec17fb65fe8eda7 to your computer and use it in GitHub Desktop.
<?
if ($_GET["PAGEN_" . $arResult['ARR_NAV']["NavNum"]] > 0 && $arResult['ARR_NAV']["NavPageNomer"] != $_GET["PAGEN_" . $arResult['ARR_NAV']["NavNum"]]) {
define('ERROR_404', 'Y');
return;
}
<?
$arNavResult = array();
$arNavResult['NavNum'] = $arResult['NAV_RESULT']->NavNum;
$arNavResult['NavPageNomer'] = $arResult['NAV_RESULT']->NavPageNomer;
$arNavResult['NavPageCount'] = $arResult['NAV_RESULT']->NavPageCount;
$arResult['ARR_NAV'] = $arNavResult;
$this->__component->SetResultCacheKeys(array('ARR_NAV'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment