From d5af6ebfc1830f983c3552925472e4c206c1b38b Mon Sep 17 00:00:00 2001 From: Zach Prezkuta Date: Mon, 4 Feb 2013 20:14:50 -0700 Subject: [PATCH] don't show Message button to user on own profile page --- boot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot.php b/boot.php index 3064b817d2..bb0b2ab7ff 100644 --- a/boot.php +++ b/boot.php @@ -1327,7 +1327,7 @@ if(! function_exists('profile_sidebar')) { } } - if(get_my_url() && $profile['unkmail']) + if( get_my_url() && $profile['unkmail'] && ($profile['uid'] != local_user()) ) $wallmessage = t('Message'); else $wallmessage = false; -- 2.39.5