• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/controller_member.php
  • Класс: CControllerClientRequestTo
  • Вызов: CControllerClientRequestTo::SendWithCheck
function SendWithCheck($page="/bitrix/admin/controller_ws.php")
{
	$oResponse = $this->Send("", $page);
	if($oResponse===false)
		return false;

	if(!$oResponse->Check())
	{
		if(is_object($GLOBALS["APPLICATION"]))
		{
			$e = new CApplicationException(GetMessage("MAIN_CMEMBER_ERR6"));
			$GLOBALS["APPLICATION"]->ThrowException($e);
		}
		return false;
	}

	return $oResponse;
}