We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 98af7402 authored by Evan Prodromou's avatar Evan Prodromou

update keys for incomingemail

darcs-hash:20080721085641-84dde-9b29902977f78714188ba5fe8c37b4d603c3c63b.gz
parent d515fae0
......@@ -269,8 +269,8 @@ class EmailsettingsAction extends SettingsAction {
$orig = clone($user);
$user->incomingemail = NULL;
if (!$user->update($orig)) {
if (!$user->updateKeys($orig)) {
common_log_db_error($user, 'UPDATE', __FILE__);
$this->server_error(_("Couldn't update user record."));
}
......@@ -284,7 +284,7 @@ class EmailsettingsAction extends SettingsAction {
$orig = clone($user);
$user->incomingemail = mail_new_incoming_address();
if (!$user->update($orig)) {
if (!$user->updateKeys($orig)) {
common_log_db_error($user, 'UPDATE', __FILE__);
$this->server_error(_("Couldn't update user record."));
}
......
......@@ -79,7 +79,7 @@ class User extends DB_DataObject
function updateKeys(&$orig) {
$parts = array();
foreach (array('nickname', 'email', 'jabber', 'sms', 'carrier', 'smsemail') as $k) {
foreach (array('nickname', 'email', 'jabber', 'incomingemail', 'sms', 'carrier', 'smsemail') as $k) {
if (strcmp($this->$k, $orig->$k) != 0) {
$parts[] = $k . ' = ' . $this->_quote($this->$k);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment