common_log_db_error($user, 'UPDATE', __FILE__);
// TRANS: Server error thrown on database error updating SMS preferences.
$this->serverError(_('Could not update user.'));
- return;
}
$user->query('COMMIT');
common_log_db_error($confirm, 'INSERT', __FILE__);
// TRANS: Server error thrown on database error adding SMS confirmation code.
$this->serverError(_('Could not insert confirmation code.'));
- return;
}
$carrier = Sms_carrier::getKV($carrier_id);
common_log_db_error($confirm, 'DELETE', __FILE__);
// TRANS: Server error thrown on database error canceling SMS phone number confirmation.
$this->serverError(_('Could not delete SMS confirmation.'));
- return;
}
// TRANS: Message given after successfully canceling SMS phone number confirmation.
$user->carrier = null;
$user->smsemail = null;
- $result = $user->updateKeys($original);
+ $result = $user->updateWithKeys($original);
if (!$result) {
common_log_db_error($user, 'UPDATE', __FILE__);
// TRANS: Server error thrown on database error removing a registered SMS phone number.
$this->serverError(_('Could not update user.'));
- return;
}
$user->query('COMMIT');
$user->incomingemail = null;
- if (!$user->updateKeys($orig)) {
+ if (!$user->updateWithKeys($orig)) {
common_log_db_error($user, 'UPDATE', __FILE__);
// TRANS: Server error displayed when the user could not be updated in SMS settings.
$this->serverError(_('Could not update user record.'));
$user->incomingemail = mail_new_incoming_address();
- if (!$user->updateKeys($orig)) {
+ if (!$user->updateWithKeys($orig)) {
common_log_db_error($user, 'UPDATE', __FILE__);
// TRANS: Server error displayed when the user could not be updated in SMS settings.
$this->serverError(_('Could not update user record.'));