• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/updatetools.php
  • Класс: UpdateTools
  • Вызов: UpdateTools::SetUpdateError
static function SetUpdateError($strError)
{
	$update_res = unserialize(COption::GetOptionString('main', '~update_autocheck_result'), ['allowed_classes' => false]);
	if(!is_array($update_res))
		$update_res = array("check_date"=>0, "result"=>false);

	if($strError <> '')
		$update_res["result"] = false;
	$update_res["error"] = $strError;

	COption::SetOptionString('main', '~update_autocheck_result', serialize($update_res));
}