diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-05-19 08:24:45 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-05-19 08:24:45 -0400 |
commit | 2080f52cb1dd08b01b6af3bffc726b1db673f7f5 (patch) | |
tree | bae7d68af833e4845856225b099af128209d0ae7 /actions/profilesettings.php | |
parent | 88483fe3b839541d2cc22a1fb553307a1b759493 (diff) |
try to fix updating in profile
darcs-hash:20080519122445-84dde-b6505e0b8ea310eee50eb6e638238fb7cf93bead.gz
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; } |