]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
debugging for profile update
authorEvan Prodromou <evan@controlezvous.ca>
Sun, 22 Jun 2008 16:45:42 +0000 (12:45 -0400)
committerEvan Prodromou <evan@controlezvous.ca>
Sun, 22 Jun 2008 16:45:42 +0000 (12:45 -0400)
darcs-hash:20080622164542-34904-e6945828677580ee30b5fb85101928633708f605.gz

actions/profilesettings.php

index 95f625de9b9dcb4260cd092a2b818e4d981e65ab..85e7bd19fecced9275736a980d7f9e7e1e2fc061 100644 (file)
@@ -133,7 +133,7 @@ class ProfilesettingsAction extends SettingsAction {
 
                if (strcmp($user->email, $email) != 0) {
                        
-                       common_debug('Updating user email from ' . $user->nickname . ' to ' . $nickname,
+                       common_debug('Updating user email from ' . $user->email . ' to ' . $email,
                                                 __FILE__);
                        
                        # We don't update email directly; it gets done by confirmemail
@@ -171,6 +171,9 @@ class ProfilesettingsAction extends SettingsAction {
                $profile->location = $location;
                $profile->profileurl = common_profile_url($nickname);
 
+               common_debug('Old profile: ' . common_log_objstring($orig_profile), __FILE__);
+               common_debug('New profile: ' . common_log_objstring($profile), __FILE__);
+               
                $result = $profile->update($orig_profile);
                
                if (!$result) {