aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_content.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-02-22 19:17:10 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-02-22 19:17:10 +0000
commitd181f0ef36f4cfbc8726da21e4de864df3a6f3d2 (patch)
treef846f97235afe6cad716e40e2396f8ba74e84ba5 /phpBB/includes/functions_content.php
parentb27add94f8eb36d5e740afadf5306c48873736f9 (diff)
downloadforums-d181f0ef36f4cfbc8726da21e4de864df3a6f3d2.tar
forums-d181f0ef36f4cfbc8726da21e4de864df3a6f3d2.tar.gz
forums-d181f0ef36f4cfbc8726da21e4de864df3a6f3d2.tar.bz2
forums-d181f0ef36f4cfbc8726da21e4de864df3a6f3d2.tar.xz
forums-d181f0ef36f4cfbc8726da21e4de864df3a6f3d2.zip
append_sid wrapper + is_guest
git-svn-id: file:///svn/phpbb/trunk@9338 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_content.php')
-rw-r--r--phpBB/includes/functions_content.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_content.php b/phpBB/includes/functions_content.php
index 59334545f7..1ef19be8d2 100644
--- a/phpBB/includes/functions_content.php
+++ b/phpBB/includes/functions_content.php
@@ -1191,7 +1191,7 @@ function get_username_string($mode, $user_id, $username, $username_colour = '',
// Build correct profile url - only show if not anonymous and permission to view profile if registered user
// For anonymous the link leads to a login page.
- if ($user_id && $user_id != ANONYMOUS && (phpbb::$user->data['user_id'] == ANONYMOUS || phpbb::$acl->acl_get('u_viewprofile')))
+ if ($user_id && $user_id != ANONYMOUS && (phpbb::$user->is_guest || phpbb::$acl->acl_get('u_viewprofile')))
{
$profile_url = ($custom_profile_url !== false) ? $custom_profile_url . '&amp;u=' . (int) $user_id : str_replace(array('={USER_ID}', '=%7BUSER_ID%7D'), '=' . (int) $user_id, $_profile_cache['base_url']);
}