From e7660e9cf0c73ac7519b7329c1f27799e5e7ce04 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sat, 5 Jun 2010 18:02:37 +0200 Subject: [PATCH] Fix edition of display name. Signed-off-by: Florent Bruneau --- modules/profile/general.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- 2.1.4