X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fconfirmaddress.php;h=e2e8c1b834100b85a961341fa8c5b9c53dcb1a99;hb=ac09bc0a792ea5eaf324f3f03a1f143604f3b4b9;hp=05ddce75a92e0d7f45663c487aba377970e0fb2c;hpb=c00491cd7a29a9ef16d6e6bfa54505d4c9a522fe;p=quix0rs-gnu-social.git diff --git a/actions/confirmaddress.php b/actions/confirmaddress.php index 05ddce75a9..e2e8c1b834 100644 --- a/actions/confirmaddress.php +++ b/actions/confirmaddress.php @@ -60,7 +60,7 @@ class ConfirmaddressAction extends Action * * @return void */ - function handle($args) + function handle(array $args=array()) { parent::handle($args); if (!common_logged_in()) { @@ -108,13 +108,8 @@ class ConfirmaddressAction extends Action $cur->smsemail = $carrier->toEmailAddress($cur->sms); } - $result = $cur->updateKeys($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();