From 042cb1604a45fbce0878c113bfc997d899e276d0 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Thu, 19 Feb 2015 17:42:47 +0100 Subject: [PATCH] ROLLBACK if query failed in email settings savePreferences --- actions/emailsettings.php | 1 + 1 file changed, 1 insertion(+) 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.')); } -- 2.39.5