mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
#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
This commit is contained in:
@@ -1143,7 +1143,10 @@ $db->sql_freeresult($result);
|
|||||||
// Load custom profile fields
|
// Load custom profile fields
|
||||||
if ($config['load_cpf_viewtopic'])
|
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();
|
$cp = new custom_profile();
|
||||||
|
|
||||||
// Grab all profile fields from users in id cache for later use - similar to the poster cache
|
// Grab all profile fields from users in id cache for later use - similar to the poster cache
|
||||||
|
Reference in New Issue
Block a user