update keys for incomingemail
darcs-hash:20080721085641-84dde-9b29902977f78714188ba5fe8c37b4d603c3c63b.gz
This commit is contained in:
parent
d515fae0a8
commit
98af7402c7
|
@ -270,7 +270,7 @@ class EmailsettingsAction extends SettingsAction {
|
||||||
$orig = clone($user);
|
$orig = clone($user);
|
||||||
$user->incomingemail = NULL;
|
$user->incomingemail = NULL;
|
||||||
|
|
||||||
if (!$user->update($orig)) {
|
if (!$user->updateKeys($orig)) {
|
||||||
common_log_db_error($user, 'UPDATE', __FILE__);
|
common_log_db_error($user, 'UPDATE', __FILE__);
|
||||||
$this->server_error(_("Couldn't update user record."));
|
$this->server_error(_("Couldn't update user record."));
|
||||||
}
|
}
|
||||||
|
@ -284,7 +284,7 @@ class EmailsettingsAction extends SettingsAction {
|
||||||
$orig = clone($user);
|
$orig = clone($user);
|
||||||
$user->incomingemail = mail_new_incoming_address();
|
$user->incomingemail = mail_new_incoming_address();
|
||||||
|
|
||||||
if (!$user->update($orig)) {
|
if (!$user->updateKeys($orig)) {
|
||||||
common_log_db_error($user, 'UPDATE', __FILE__);
|
common_log_db_error($user, 'UPDATE', __FILE__);
|
||||||
$this->server_error(_("Couldn't update user record."));
|
$this->server_error(_("Couldn't update user record."));
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,7 +79,7 @@ class User extends DB_DataObject
|
||||||
|
|
||||||
function updateKeys(&$orig) {
|
function updateKeys(&$orig) {
|
||||||
$parts = array();
|
$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) {
|
if (strcmp($this->$k, $orig->$k) != 0) {
|
||||||
$parts[] = $k . ' = ' . $this->_quote($this->$k);
|
$parts[] = $k . ' = ' . $this->_quote($this->$k);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user