aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-04-01 14:12:29 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-04-01 14:12:29 +0000
commit5828a9a85b07e82c88c40716f85e3561da4df690 (patch)
treedd363302d1b3bef87bc22966cc3a5503b4d4e2e5 /phpBB/viewtopic.php
parente7fcb3625ed5763c50861a64e3a00ee6f86f41e5 (diff)
downloadforums-5828a9a85b07e82c88c40716f85e3561da4df690.tar
forums-5828a9a85b07e82c88c40716f85e3561da4df690.tar.gz
forums-5828a9a85b07e82c88c40716f85e3561da4df690.tar.bz2
forums-5828a9a85b07e82c88c40716f85e3561da4df690.tar.xz
forums-5828a9a85b07e82c88c40716f85e3561da4df690.zip
#5292
git-svn-id: file:///svn/phpbb/trunk@7256 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 8840168336..3e2ae7b408 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -993,7 +993,8 @@ while ($row = $db->sql_fetchrow($result))
{
$user_sig = '';
- if ($row['enable_sig'] && $config['allow_sig'] && $user->optionget('viewsigs'))
+ // We add the signature to every posters entry because enable_sig is post dependant
+ if ($row['user_sig'] && $config['allow_sig'] && $user->optionget('viewsigs'))
{
$user_sig = $row['user_sig'];
}
@@ -1227,7 +1228,7 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i)
$poster_id = $row['user_id'];
// End signature parsing, only if needed
- if ($user_cache[$poster_id]['sig'] && empty($user_cache[$poster_id]['sig_parsed']))
+ if ($user_cache[$poster_id]['sig'] && $row['enable_sig'] && empty($user_cache[$poster_id]['sig_parsed']))
{
$user_cache[$poster_id]['sig'] = censor_text($user_cache[$poster_id]['sig']);
$user_cache[$poster_id]['sig'] = str_replace("\n", '<br />', $user_cache[$poster_id]['sig']);