hotfix for brand entry on sitemap generation
This commit is contained in:
parent
8c4feda814
commit
1a3daf97a9
@ -2362,6 +2362,13 @@ if(!in_array("simulate", $GLOBALS['argv']))
|
||||
$model = $sitemap_all_models_search_ob->GetFields();
|
||||
$model['PROPERTIES'] = $sitemap_all_models_search_ob->GetProperties();
|
||||
|
||||
if($sitemap_catalog[$model['PROPERTY_BRAND_UID_VALUE']]['MODELS'] === null)
|
||||
{
|
||||
$sitemap_catalog[$model['PROPERTY_BRAND_UID_VALUE']] = [
|
||||
'MODELS' => [],
|
||||
];
|
||||
}
|
||||
|
||||
array_push($sitemap_catalog[$model['PROPERTY_BRAND_UID_VALUE']]['MODELS'], $model);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user