X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fconfirmaddress.php;h=806851001e3cf45e4a0f13717b9589b8cd89060d;hb=a1098fa1532f0abe04d006f54326158c6d6590fb;hp=1e2d3a92d6d3104a8bc6650d9fe45e9726308c6e;hpb=4917a422a1fe1d22827e07cb61c54b7978fa7958;p=quix0rs-gnu-social.git diff --git a/actions/confirmaddress.php b/actions/confirmaddress.php index 1e2d3a92d6..806851001e 100644 --- a/actions/confirmaddress.php +++ b/actions/confirmaddress.php @@ -108,13 +108,8 @@ class ConfirmaddressAction extends Action $cur->smsemail = $carrier->toEmailAddress($cur->sms); } - $result = $cur->updateWithKeys($orig_user); - - if (!$result) { - common_log_db_error($cur, 'UPDATE', __FILE__); - // TRANS: Server error displayed when confirming an e-mail address or IM address fails. - $this->serverError(_('Could not update user.')); - } + // Throws exception on failure. + $cur->updateWithKeys($orig_user); if ($type == 'email') { $cur->emailChanged();