hotfix for catalog display of empty brand/model

This commit is contained in:
merelendor 2022-12-04 12:20:01 +03:00
parent b338760dad
commit 5754f8257d

View File

@ -59,8 +59,8 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true))))
$pages_url = $arParams['PATH'];
$arResult['BRAND_DISABLED'] = true;
$arResult['MODEL_DISABLED'] = true;
$arResult['BRAND_DISABLED'] = false;
$arResult['MODEL_DISABLED'] = false;
$arResult['EXTENDED'] = false;
$arResult['BY_OPTIONS'] = false;
$arResult['FILTER_SMALL'] = $arParams['FILTER_SMALL'] ? true : false;
@ -99,6 +99,8 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true))))
}
else
{
$arResult['BRAND_DISABLED'] = true;
$arResult['MODEL_DISABLED'] = true;
$arResult['SHOW_MODELS_LIST'] = false;
}