aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/views/default
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-21 14:12:26 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-21 14:12:26 +0000
commitb79e137f99f2376fd2d2ab95a249d458c675d595 (patch)
tree5a8287f9c77ba6e495a8c3c3ca5ca55358b06ba6 /mod/profile/views/default
parentf75291273ffb60acc66b02329224044af98953a0 (diff)
downloadelgg-b79e137f99f2376fd2d2ab95a249d458c675d595.tar.gz
elgg-b79e137f99f2376fd2d2ab95a249d458c675d595.tar.bz2
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
Diffstat (limited to 'mod/profile/views/default')
-rwxr-xr-xmod/profile/views/default/profile/profile_ownerblock.php4
1 files changed, 2 insertions, 2 deletions
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 .= "</div>";
}
$profile_actions = "";
-if(get_loggedin_user()->getGuid() == page_owner()){
+if(isloggedin() && (get_loggedin_user()->getGuid() == page_owner())){
$profile_actions = "<div class='clearfloat profile_actions'>";
$profile_actions .= "<a href='{$vars['url']}pg/profile/{$user->username}/edit/details' class='action_button'>". elgg_echo('profile:edit') ."</a>";
$profile_actions .= "<a href='{$vars['url']}pg/profile/{$user->username}/edit/icon' class='action_button'>". elgg_echo('profile:editicon') ."</a>";
@@ -48,7 +48,7 @@ if(get_loggedin_user()->getGuid() == page_owner()){
}
}
}
- if(is_plugin_enabled('messages')){
+ if(is_plugin_enabled('messages') && isloggedin()){
$profile_actions .= "<a href=\"{$vars['url']}mod/messages/send.php?send_to={$user->guid}\" class='action_button'>". elgg_echo('messages:send') ."</a>";
}
$profile_actions .= "</div>";