{ $arID[] = $arRes['ID']; } } foreach($arID as $ID) { $ID = intval($ID); if($ID <= 0) continue; switch($_REQUEST['action']) { case "delete": SitemapRuntimeTable::clearByPid($ID); SitemapTable::delete($ID); break; } } } $dbSites = Freetrix\Main\SiteTable::getList( array( 'order' => array('DEF' => 'DESC', 'NAME' => 'ASC'), 'select' => array('NAME', 'LID') ) ); $arSites = array(); while($arRes = $dbSites->fetch(Converter::getHtmlConverter())) {