Strict Standards: Declaration of PluginAceadminpanel_ModuleLang::Get() should be compatible with ModuleLang::Get($sName, $aReplace = Array, $bDelete = true) in /home/deer/pages.org.ua/blog/plugins/aceadminpanel/classes/modules/lang/Lang.class.php on line 21 Strict Standards: Declaration of PluginAceadminpanel_ModuleViewer::_SortBlocks() should be compatible with ModuleViewer::_SortBlocks($a, $b) in /home/deer/pages.org.ua/blog/plugins/aceadminpanel/classes/modules/viewer/Viewer.class.php on line 24 CFile::GetList / Поиск по тегам / BPOU - Bitrix blog

Получить файлы с базы одним запросом

$res = CFile::GetList(array("ID"=>"asc"), array("@ID" => implode(",",$collect_imgs)));

while($res_arr = $res->GetNext()) {
	$res_arr["SRC"] = "/upload/".$res_arr["SUBDIR"]."/".$res_arr["FILE_NAME"];
	$arResult["YOURIMAGES"][$res_arr["ID"]] = $res_arr;
}

Где $collect_imgs — массив айдишников картинок