From: Stéphane Jacob Date: Sat, 20 Nov 2010 14:13:44 +0000 (+0100) Subject: As 'yourself' does not appear when the editor is not the the profile owner, do not... X-Git-Tag: xorg/1.0.2~142 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=9241c897fc7117f83980002aa4109f3a3486ff26;p=platal.git As 'yourself' does not appear when the editor is not the the profile owner, do not save it in this case. Signed-off-by: Stéphane Jacob --- 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 = {?}