From: Tim Düsterhus Date: Tue, 17 Nov 2020 09:26:11 +0000 (+0100) Subject: Merge transactions in MultifactorManageForm::save() X-Git-Tag: 5.4.0_Alpha_1~555^2~47^2~11 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3dedd8191a250f15fd6342f4648822fcbc9e1a78;p=GitHub%2FWoltLab%2FWCF.git Merge transactions in MultifactorManageForm::save() --- diff --git a/wcfsetup/install/files/lib/form/MultifactorManageForm.class.php b/wcfsetup/install/files/lib/form/MultifactorManageForm.class.php index 1afd08e3c8..8eea7c7517 100644 --- a/wcfsetup/install/files/lib/form/MultifactorManageForm.class.php +++ b/wcfsetup/install/files/lib/form/MultifactorManageForm.class.php @@ -118,12 +118,11 @@ class MultifactorManageForm extends AbstractFormBuilderForm { $this->returnData = $this->processor->processManagementForm($this->form, $setup); $this->setup = $setup; - WCF::getDB()->commitTransaction(); - WCF::getDB()->beginTransaction(); if (!$this->hasBackupCodes()) { $this->generateBackupCodes(); } + WCF::getDB()->commitTransaction(); $this->saved();