Skip to content

Commit

Permalink
Fix: Only commit to the db if a transaction was started
Browse files Browse the repository at this point in the history
DD-2888
  • Loading branch information
AllanJard committed Feb 1, 2024
1 parent ec0c6d8 commit 709468c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 709468c

Please sign in to comment.