From 9241c897fc7117f83980002aa4109f3a3486ff26 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Sat, 20 Nov 2010 15:13:44 +0100 Subject: [PATCH] As 'yourself' does not appear when the editor is not the the profile owner, do not save it in this case. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/profile/general.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/profile/general.inc.php b/modules/profile/general.inc.php index 9684412..900c1c8 100644 --- a/modules/profile/general.inc.php +++ b/modules/profile/general.inc.php @@ -636,7 +636,7 @@ class ProfilePageGeneral extends ProfilePage WHERE pid = {?}", $this->values['photo_pub'], $this->pid()); } - if ($this->changed['yourself']) { + if (S::user()->isMe($this->owner) && $this->changed['yourself']) { if ($this->owner) { XDB::execute('UPDATE accounts SET display_name = {?} -- 2.1.4