]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
what exactly are we updating
authorEvan Prodromou <evan@prodromou.name>
Sun, 15 Jun 2008 15:20:47 +0000 (11:20 -0400)
committerEvan Prodromou <evan@prodromou.name>
Sun, 15 Jun 2008 15:20:47 +0000 (11:20 -0400)
darcs-hash:20080615152047-84dde-eca46b9a1e3e0adb81a29d1b43bf87ee93e4f535.gz

actions/profilesettings.php

index 58160a4060d720e48cfac3f55c298b5dc26abf40..dff91d5601c35ad0e5a42cc6142d7ebdc9811d6c 100644 (file)
@@ -112,7 +112,9 @@ class ProfilesettingsAction extends SettingsAction {
                $user->nickname = $nickname;
                $user->email = $email;
 
-               if (!$user->update($original)) {
+               common_debug('Updating, nickname ="'.$user->nickname.'" and email ="'.$user->email.'"');
+               
+               if (FALSE === $user->update($original)) {
                        common_server_error(_t('Couldnt update user.'));
                        return;
                }