Подскажите, пожалуйста, как исправить ошибку
[TypeError]
Cannot access offset of type string on string (0)
/home/c/crikon8y/ru.reisennachrussland.com/public_html/local/templates/fortuna/components/bitrix/catalog/catalog1/bitrix/catalog.element/new/result_modifier.php:7
Код с ошибкой:
<?
if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED!==true) die();
/** @var CBitrixComponentTemplate $this */
/** @var array $arParams */
/** @var array $arResult */
$_REQUEST["DOWN"] = htmlspecialchars_decode($arResult["PROPERTIES"]["DOWN"]["VALUE"]["TEXT"]);
$uf = CIBlockElement::GetProperty($arResult["IBLOCK_ID"], $arResult["ID"], [], ["CODE" => "LINKDE"]);
$res = $uf->GetNext();
$linkde = $res["VALUE"];
$uf = CIBlockElement::GetProperty($arResult["IBLOCK_ID"], $arResult["ID"], [], ["CODE" => "TOPTEXT"]);
$res = $uf->GetNext();
$toptext = htmlspecialchars_decode($res["VALUE"]["TEXT"]);
$toptext = str_replace("\n","",$toptext);
$toptext = str_replace("\r","",$toptext);
$toptext = addslashes($toptext);
$uf = CIBlockElement::GetProperty($arResult["IBLOCK_ID"], $arResult["ID"], [], ["CODE" => "TOPBANNER"]);
$res = $uf->GetNext();
$topbanner = CFile::GetPath($res["VALUE"]);