aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/extension
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/extension')
-rw-r--r--phpBB/phpbb/extension/base.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/phpBB/phpbb/extension/base.php b/phpBB/phpbb/extension/base.php
index b05c1af8d4..abdb10df88 100644
--- a/phpBB/phpbb/extension/base.php
+++ b/phpBB/phpbb/extension/base.php
@@ -137,9 +137,16 @@ class base implements \phpbb\extension\extension_interface
$migrations = $this->extension_finder->get_classes_from_files($migrations);
- // Unset classes that do not exist or do not extend the
- // abstract class phpbb\db\migration\migration
- \phpbb\db\migrator::is_migration($migrations);
+ // Unset classes that are not a valid migration
+ foreach ($migrations as $key => $migration)
+ {
+ if (\phpbb\db\migrator::is_migration($migration) === true)
+ {
+ continue;
+ }
+
+ unset($migrations[$key]);
+ }
return $migrations;
}