aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2013-04-14 17:25:45 +0200
committerMarc Alexander <admin@m-a-styles.de>2013-04-14 17:25:45 +0200
commit7240759e34d4e67fbce632c03ae6818aad36a07c (patch)
treed754b237b3c65c7bd26006d1523698f48a951a05 /phpBB/includes/acp
parentbc423f0d97e1cc531aa78505317e85604e57b88d (diff)
downloadforums-7240759e34d4e67fbce632c03ae6818aad36a07c.tar
forums-7240759e34d4e67fbce632c03ae6818aad36a07c.tar.gz
forums-7240759e34d4e67fbce632c03ae6818aad36a07c.tar.bz2
forums-7240759e34d4e67fbce632c03ae6818aad36a07c.tar.xz
forums-7240759e34d4e67fbce632c03ae6818aad36a07c.zip
[ticket/11465] Check if class exists before including info file
PHPBB3-11465
Diffstat (limited to 'phpBB/includes/acp')
-rw-r--r--phpBB/includes/acp/acp_modules.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_modules.php b/phpBB/includes/acp/acp_modules.php
index 62af12ad32..ab416fb406 100644
--- a/phpBB/includes/acp/acp_modules.php
+++ b/phpBB/includes/acp/acp_modules.php
@@ -579,7 +579,7 @@ class acp_modules
{
$info_class_file = str_replace("phpbb_{$module_class}_info_", '', $cur_module);
$info_class = $info_class_file . '_info';
- if (file_exists($directory . $info_class_file . '.' . $phpEx))
+ if (!class_exists($info_class) && file_exists($directory . $info_class_file . '.' . $phpEx))
{
include($directory . $info_class_file . '.' . $phpEx);
}