diff options
author | Evan Prodromou <evan@controlezvous.ca> | 2008-06-22 11:37:54 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlezvous.ca> | 2008-06-22 11:37:54 -0400 |
commit | 0239802682f4a7a9bc4955823102b892dde6ee58 (patch) | |
tree | 4fb85c242a447ccfb2f55874baf70175e61bb171 /actions/profilesettings.php | |
parent | 1cab6c7d5043ce60469b9590aeb846034d575335 (diff) |
more debugging
darcs-hash:20080622153754-34904-b722aa6d0ffa52242b06a8eec1eaa5216d216a4f.gz
Diffstat (limited to 'actions/profilesettings.php')
-rw-r--r-- | actions/profilesettings.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/actions/profilesettings.php b/actions/profilesettings.php index b23a43f87..5f157e3fe 100644 --- a/actions/profilesettings.php +++ b/actions/profilesettings.php @@ -110,17 +110,18 @@ class ProfilesettingsAction extends SettingsAction { } $user = common_current_user(); - assert(!is_null($user)); # should already be checked $user->query('BEGIN'); if (strcmp($user->nickname, $nickname) != 0) { + + common_debug('Updating user nickname from ' . $user->nickname . ' to ' . $nickname, + __FILE__); + $original = clone($user); $user->nickname = $nickname; - common_debug('Old nickname = ' . $original->nickname . ', new nickname = ' . $user->nickname, __FILE__); - $result = $user->updateKeys($original); if ($result === FALSE) { @@ -132,6 +133,9 @@ class ProfilesettingsAction extends SettingsAction { if (strcmp($user->email, $email) != 0) { + common_debug('Updating user email from ' . $user->nickname . ' to ' . $nickname, + __FILE__); + # We don't update email directly; it gets done by confirmemail $confirm = new Confirm_email(); |