aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/extension/base.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/phpbb/extension/base.php b/phpBB/phpbb/extension/base.php
index 4bf19b37ed..8b4d747eaf 100644
--- a/phpBB/phpbb/extension/base.php
+++ b/phpBB/phpbb/extension/base.php
@@ -139,8 +139,9 @@ class base implements \phpbb\extension\extension_interface
foreach ($migrations as $key => $migration)
{
- $reflector = new \ReflectionClass($migration);
- if (!$reflector->isSubclassOf('\phpbb\db\migration\migration')) {
+ // If the class doesn't exist OR the class does not extend the migration class
+ // we need to skip it.
+ if (!class_exists($migration) || ($reflector = new \ReflectionClass($migration) && !$reflector->isSubclassOf('\phpbb\db\migration\migration'))) {
unset($migrations[$key]);
}
}