<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();

$arValue = array();

if (!$arParams['arUserField']['SETTINGS']['USER_URL'])
	$arParams['arUserField']['SETTINGS']['USER_URL'] = COption::GetOptionString('intranet', 'path_user', '/company/personal/user/#USER_ID#/');

$arResult['VALUE'] = array_filter($arResult['VALUE'], "intval");

if (is_array($arResult['VALUE']) && count($arResult['VALUE']) > 0)
{

	$dbRes = CUser::GetList(
		$by = "LAST_NAME", $order = "ASC", 
		array(
			'ACTIVE' => 'Y', 
			'ID' => implode('|', $arResult['VALUE'])
		)
	);
	while ($arRes = $dbRes->Fetch())
	{
		$arValue[$arRes['ID']] = $arRes;
	}
}
$arResult['VALUE'] = $arValue;
?>
