From cd223d2204d393995d46326b9cde9006054ce2cf Mon Sep 17 00:00:00 2001 From: mrdim Date: Wed, 14 Mar 2018 08:54:38 +0500 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B8?= =?UTF-8?q?=20=D0=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20=D0=BD=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F=20?= =?UTF-8?q?=D1=8D=D0=BB=D0=B5=D0=BC=D0=B5=D0=BD=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/widget/IblockElementWidget.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widget/IblockElementWidget.php b/lib/widget/IblockElementWidget.php index 6b20d68..718e84a 100644 --- a/lib/widget/IblockElementWidget.php +++ b/lib/widget/IblockElementWidget.php @@ -54,7 +54,7 @@ public function getEditHtml() if (!empty($elementId)) { $rsElement = ElementTable::getById($elementId); - if (!$element = $rsElement->fetchAll()) { + if (!$element = $rsElement->fetch()) { $element['NAME'] = Loc::getMessage('IBLOCK_ELEMENT_NOT_FOUND'); } } else {