$db_props = CIBlockElement::GetProperty($arFields["IBLOCK_ID"], $arFields['ID'], "sort", "asc", Array("CODE"=>"elems_preview"));
while($ar_props = $db_props->Fetch()) {
if ($ar_props["VALUE"]) {
$arr[$ar_props['PROPERTY_VALUE_ID']] = Array("VALUE" => Array("del" => "Y"));
CIBlockElement::SetPropertyValueCode($arFields["ID"], "elems_preview", $arr );
CFile::Delete($ar_props['VALUE']);
@unlink($new_make_file);
}
} |