From 5828a9a85b07e82c88c40716f85e3561da4df690 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 1 Apr 2007 14:12:29 +0000 Subject: #5292 git-svn-id: file:///svn/phpbb/trunk@7256 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/viewtopic.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'phpBB/viewtopic.php') 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", '
', $user_cache[$poster_id]['sig']); -- cgit v1.2.1