aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-12-03 11:17:30 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-12-03 11:17:30 +0000
commit4e3d564be66e69cbb336592c9f1b6baac3eb14d1 (patch)
treec6b794d5f25f1769bae7e42bb909c1aea9e2216c
parent16e8b8271b25708bf4d573405bf7c1d609a4f9f5 (diff)
downloadforums-4e3d564be66e69cbb336592c9f1b6baac3eb14d1.tar
forums-4e3d564be66e69cbb336592c9f1b6baac3eb14d1.tar.gz
forums-4e3d564be66e69cbb336592c9f1b6baac3eb14d1.tar.bz2
forums-4e3d564be66e69cbb336592c9f1b6baac3eb14d1.tar.xz
forums-4e3d564be66e69cbb336592c9f1b6baac3eb14d1.zip
fix the no_profile one called after another mode with the same user_id and guest_username
git-svn-id: file:///svn/phpbb/trunk@9161 89ea8834-ac86-4346-8a33-228a782c2dd0
-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 1a3d548e93..bacad85e11 100644
--- a/phpBB/includes/functions_content.php
+++ b/phpBB/includes/functions_content.php
@@ -1165,8 +1165,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];