don't show Message button to user on own profile page

This commit is contained in:
Zach Prezkuta 2013-02-04 20:14:50 -07:00
parent 9dbe7efce5
commit d5af6ebfc1

View File

@ -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'); $wallmessage = t('Message');
else else
$wallmessage = false; $wallmessage = false;