diff options
Diffstat (limited to 'actions/profilesettings.php')
-rw-r--r-- | actions/profilesettings.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actions/profilesettings.php b/actions/profilesettings.php index f1f4844d1..fc06c5a18 100644 --- a/actions/profilesettings.php +++ b/actions/profilesettings.php @@ -67,11 +67,13 @@ class ProfilesettingsAction extends SettingsAction { # FIXME: scrub input # FIXME: transaction! + + $original = clone($user); $user->nickname = $this->arg('nickname'); $user->email = $this->arg('email'); - if (!$user->update()) { + if (!$user->update($original)) { common_server_error(_t('Couldnt update user.')); return; } |