aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-03-30 14:03:28 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-03-30 14:03:28 +0000
commit607389caf0c91dac9f8301ea620c25415b85ca61 (patch)
treeffb21eb27b59db8b13477ea07bb8d9964b9ca11b /phpBB
parent1f5fd0b721caf8efbd765072c87c0cdf2aead714 (diff)
downloadforums-607389caf0c91dac9f8301ea620c25415b85ca61.tar
forums-607389caf0c91dac9f8301ea620c25415b85ca61.tar.gz
forums-607389caf0c91dac9f8301ea620c25415b85ca61.tar.bz2
forums-607389caf0c91dac9f8301ea620c25415b85ca61.tar.xz
forums-607389caf0c91dac9f8301ea620c25415b85ca61.zip
#43595 - we should also check for existing classes and use include instead of include_once (of course)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9418 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/viewtopic.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index ebdb54fe8d..cd0dae2b46 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -1143,7 +1143,10 @@ $db->sql_freeresult($result);
// Load custom profile fields
if ($config['load_cpf_viewtopic'])
{
- include($phpbb_root_path . 'includes/functions_profile_fields.' . $phpEx);
+ if (!class_exists('custom_profile'))
+ {
+ include($phpbb_root_path . 'includes/functions_profile_fields.' . $phpEx);
+ }
$cp = new custom_profile();
// Grab all profile fields from users in id cache for later use - similar to the poster cache