From: Florent Bruneau Date: Sat, 5 Jun 2010 16:02:37 +0000 (+0200) Subject: Fix edition of display name. X-Git-Tag: xorg/1.0.0~176 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=e7660e9cf0c73ac7519b7329c1f27799e5e7ce04;p=platal.git Fix edition of display name. Signed-off-by: Florent Bruneau --- diff --git a/modules/profile/general.inc.php b/modules/profile/general.inc.php index 4359cac..19a5e0e 100644 --- a/modules/profile/general.inc.php +++ b/modules/profile/general.inc.php @@ -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()