From 1447ed1ad597803275b1ba7dafb0b5f61e1043a9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Sat, 20 Nov 2010 15:26:58 +0100 Subject: [PATCH] As 'yourself' is not modified when the editor is not the the profile owner, do not say it is 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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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(); -- 2.1.4