From b79e137f99f2376fd2d2ab95a249d458c675d595 Mon Sep 17 00:00:00 2001 From: dave Date: Wed, 21 Apr 2010 14:12:26 +0000 Subject: profile owner block can now be viewed while logged out. git-svn-id: http://code.elgg.org/elgg/trunk@5835 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/views/default/profile/profile_ownerblock.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod') diff --git a/mod/profile/views/default/profile/profile_ownerblock.php b/mod/profile/views/default/profile/profile_ownerblock.php index eeffffe02..a040582d0 100755 --- a/mod/profile/views/default/profile/profile_ownerblock.php +++ b/mod/profile/views/default/profile/profile_ownerblock.php @@ -29,7 +29,7 @@ if($section == 'details'){ $more_info .= ""; } $profile_actions = ""; -if(get_loggedin_user()->getGuid() == page_owner()){ +if(isloggedin() && (get_loggedin_user()->getGuid() == page_owner())){ $profile_actions = "
"; $profile_actions .= "username}/edit/details' class='action_button'>". elgg_echo('profile:edit') .""; $profile_actions .= "username}/edit/icon' class='action_button'>". elgg_echo('profile:editicon') .""; @@ -48,7 +48,7 @@ if(get_loggedin_user()->getGuid() == page_owner()){ } } } - if(is_plugin_enabled('messages')){ + if(is_plugin_enabled('messages') && isloggedin()){ $profile_actions .= "guid}\" class='action_button'>". elgg_echo('messages:send') .""; } $profile_actions .= "
"; -- cgit v1.2.3