From 709468cb144559d7c69a168b2c9707c543e43332 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Thu, 1 Feb 2024 15:50:44 +0000 Subject: [PATCH] Fix: Only commit to the db if a transaction was started DD-2888 --- Editor.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Editor.php b/Editor.php index 7d295a8..56b44f9 100644 --- a/Editor.php +++ b/Editor.php @@ -1048,10 +1048,10 @@ private function _process($data) $this->_fileClean(); } } - } - if ($this->_transaction) { - $this->_db->commit(); + if ($this->_transaction) { + $this->_db->commit(); + } } // Tidy up the reply