Fix edition of display name.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 5 Jun 2010 16:02:37 +0000 (18:02 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 5 Jun 2010 16:02:37 +0000 (18:02 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/profile/general.inc.php

index 4359cac..19a5e0e 100644 (file)
@@ -555,7 +555,8 @@ class ProfileSettingGeneral extends ProfilePage
         if ($this->changed['yourself']) {
             XDB::execute('UPDATE  accounts
                              SET  display_name = {?}
-                           WHERE  pid = {?}', $this->pid());
+                           WHERE  uid = {?}',
+                         $this->values['yourself'], $this->owner->id());
         }
         if ($this->changed['promo_display']) {
             if ($this->values['promo_display']{0} == $this->profile->mainEducation()