From: Mikael Nordfeldth Date: Thu, 19 Feb 2015 16:42:47 +0000 (+0100) Subject: ROLLBACK if query failed in email settings savePreferences X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=042cb1604a45fbce0878c113bfc997d899e276d0;p=quix0rs-gnu-social.git ROLLBACK if query failed in email settings savePreferences --- diff --git a/actions/emailsettings.php b/actions/emailsettings.php index 0c2033d821..96ada2c826 100644 --- a/actions/emailsettings.php +++ b/actions/emailsettings.php @@ -340,6 +340,7 @@ class EmailsettingsAction extends SettingsAction if ($result === false) { common_log_db_error($user, 'UPDATE', __FILE__); + $user->query('ROLLBACK'); // TRANS: Server error thrown on database error updating e-mail preferences. $this->serverError(_('Could not update user.')); }