From 0feecd605fed118e45f90e37f7750467762f4050 Mon Sep 17 00:00:00 2001 From: Mirzaev Date: Sun, 23 Oct 2022 08:06:02 +1000 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=B7=D0=B0=D0=BF=D0=B8=D1=81=D0=B8?= =?UTF-8?q?=20=D0=B2=20=D0=B1=D1=83=D1=84=D0=B5=D1=80=20=D0=B2=D1=8B=D0=B2?= =?UTF-8?q?=D0=BE=D0=B4=D0=B0=20=D0=BF=D1=80=D0=B8=20=D0=BF=D1=80=D0=BE?= =?UTF-8?q?=D0=B2=D0=B5=D1=80=D0=BA=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mirzaev/arangodb/system/document.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mirzaev/arangodb/system/document.php b/mirzaev/arangodb/system/document.php index 657efad..3e265e7 100644 --- a/mirzaev/arangodb/system/document.php +++ b/mirzaev/arangodb/system/document.php @@ -72,11 +72,11 @@ class document // Запись на сервер и его ответ в буфер возврата $id = isset($_from, $_to) ? $documents->saveEdge($collection, $_from, $_to, $document) : $documents->insert($collection, $document); - if ($check && $terminal instanceof terminal && $documents->has($collection, $id)) { + if ($check && $documents->has($collection, $id)) { // Документ записан // Запись в вывод - $terminal::write("В коллекции \"$collection\" создан документ \"$id\""); + if ($terminal instanceof terminal) $terminal::write("В коллекции \"$collection\" создан документ \"$id\""); } // Возврат идентификатора коллекции