mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00: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:
parent
1f5fd0b721
commit
607389caf0
1 changed files with 4 additions and 1 deletions
|
@ -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'])
|
||||||
{
|
{
|
||||||
|
if (!class_exists('custom_profile'))
|
||||||
|
{
|
||||||
include($phpbb_root_path . 'includes/functions_profile_fields.' . $phpEx);
|
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue