diff options
Diffstat (limited to 'mod/profile.php')
-rw-r--r-- | mod/profile.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/profile.php b/mod/profile.php index b72c279e2..5576b49dd 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -90,7 +90,7 @@ function profile_content(&$a, $update = 0) { $a->profile['profile_uid'] = $update; } else { - if($a->profile['profile_uid'] == get_uid()) + if($a->profile['profile_uid'] == local_user()) $o .= '<script> $(document).ready(function() { $(\'#nav-home-link\').addClass(\'nav-selected\'); });</script>'; } @@ -308,7 +308,7 @@ function profile_content(&$a, $update = 0) { if((($item['verb'] == ACTIVITY_LIKE) || ($item['verb'] == ACTIVITY_DISLIKE)) && ($item['id'] != $item['parent'])) continue; - $lock = (($item['uid'] == get_uid()) && (strlen($item['allow_cid']) || strlen($item['allow_gid']) + $lock = (($item['uid'] == local_user()) && (strlen($item['allow_cid']) || strlen($item['allow_gid']) || strlen($item['deny_cid']) || strlen($item['deny_gid'])) ? '<div class="wall-item-lock"><img src="images/lock_icon.gif" class="lockview" alt="' . t('Private Message') . '" onclick="lockview(event,' . $item['id'] . ');" /></div>' : '<div class="wall-item-lock"></div>'); |