aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Friedman <maf675@gmail.com>2016-01-27 12:24:18 -0800
committerMatt Friedman <maf675@gmail.com>2016-01-27 12:24:18 -0800
commit996441a1da472b587d367994cb6b6dcf711b027c (patch)
tree8a29fea20a377856c368997e34067124095a068e
parentae7aa5dc579f65ee2206e6ed7736d2b320bdaad1 (diff)
downloadforums-996441a1da472b587d367994cb6b6dcf711b027c.tar
forums-996441a1da472b587d367994cb6b6dcf711b027c.tar.gz
forums-996441a1da472b587d367994cb6b6dcf711b027c.tar.bz2
forums-996441a1da472b587d367994cb6b6dcf711b027c.tar.xz
forums-996441a1da472b587d367994cb6b6dcf711b027c.zip
[ticket/14434] Remove redundant conditional
PHPBB3-14434
-rw-r--r--phpBB/phpbb/db/migrator.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/phpbb/db/migrator.php b/phpBB/phpbb/db/migrator.php
index 2f280ec5a5..8f3b860b93 100644
--- a/phpBB/phpbb/db/migrator.php
+++ b/phpBB/phpbb/db/migrator.php
@@ -226,7 +226,7 @@ class migrator
*/
protected function try_apply($name)
{
- if (!class_exists($name) || !self::is_migration($name))
+ if (!self::is_migration($name))
{
$this->output_handler->write(array('MIGRATION_NOT_VALID', $name), migrator_output_handler_interface::VERBOSITY_DEBUG);
return false;
@@ -401,7 +401,7 @@ class migrator
*/
protected function try_revert($name)
{
- if (!class_exists($name) || !self::is_migration($name))
+ if (!self::is_migration($name))
{
return false;
}
@@ -719,7 +719,7 @@ class migrator
return false;
}
- if (!class_exists($name) || !self::is_migration($name))
+ if (!self::is_migration($name))
{
return $name;
}