aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_content.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-12-03 11:15:50 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-12-03 11:15:50 +0000
commit10da18e82974374dda9dc6f4e1a90f2ccb403153 (patch)
tree2964d215729a394204f172c649266353774c490b /phpBB/includes/functions_content.php
parent41ad04c1550bd01a9eaa0a65e9d44e928194cc35 (diff)
downloadforums-10da18e82974374dda9dc6f4e1a90f2ccb403153.tar
forums-10da18e82974374dda9dc6f4e1a90f2ccb403153.tar.gz
forums-10da18e82974374dda9dc6f4e1a90f2ccb403153.tar.bz2
forums-10da18e82974374dda9dc6f4e1a90f2ccb403153.tar.xz
forums-10da18e82974374dda9dc6f4e1a90f2ccb403153.zip
fix the no_profile one called after another mode with the same user_id and guest_username
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9160 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_content.php')
-rw-r--r--phpBB/includes/functions_content.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_content.php b/phpBB/includes/functions_content.php
index 2741d5ed17..1228f8e567 100644
--- a/phpBB/includes/functions_content.php
+++ b/phpBB/includes/functions_content.php
@@ -1169,8 +1169,8 @@ function get_username_string($mode, $user_id, $username, $username_colour = '',
// If the mode is 'no_profile', we simply construct the TPL code due to calls to this mode being very very rare
if ($mode == 'no_profile')
{
- $tpl = (!$_profile_cache[$cache_key][$mode]['colour']) ? '{USERNAME}' : '<span style="color: {USERNAME_COLOUR};" class="username-coloured">{USERNAME}</span>';
- return str_replace(array('{USERNAME_COLOUR}', '{USERNAME}'), array($_profile_cache[$cache_key][$mode]['colour'], $_profile_cache[$cache_key][$mode]['username']), $tpl);
+ $tpl = (!$_profile_cache[$cache_key]['colour']) ? '{USERNAME}' : '<span style="color: {USERNAME_COLOUR};" class="username-coloured">{USERNAME}</span>';
+ return str_replace(array('{USERNAME_COLOUR}', '{USERNAME}'), array($_profile_cache[$cache_key]['colour'], $_profile_cache[$cache_key]['username']), $tpl);
}
return $_profile_cache[$cache_key][$mode];