From: Stéphane Jacob Date: Sat, 20 Nov 2010 14:26:58 +0000 (+0100) Subject: As 'yourself' is not modified when the editor is not the the profile owner, do not... X-Git-Tag: xorg/1.0.2~140 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=1447ed1ad597803275b1ba7dafb0b5f61e1043a9;p=platal.git As 'yourself' is not modified when the editor is not the the profile owner, do not say it is in this case. Signed-off-by: Stéphane Jacob --- diff --git a/modules/profile/general.inc.php b/modules/profile/general.inc.php index cd3b394..bc8582d 100644 --- a/modules/profile/general.inc.php +++ b/modules/profile/general.inc.php @@ -545,11 +545,12 @@ class ProfilePageGeneral extends ProfilePage if (!S::user()->isMe($this->owner)) { $this->settings['deathdate'] = new ProfileSettingDate(true); } + if (S::user()->isMe($this->owner)) { + $this->settings['yourself'] = null; + } if (S::user()->checkPerms('directory_private') || S::user()->isMyProfile($this->owner)) { - $this->settings['yourself'] - = $this->settings['freetext'] - = null; + $this->settings['freetext'] = null; $this->settings['freetext_pub'] = $this->settings['photo_pub'] = new ProfileSettingPub();