From 996441a1da472b587d367994cb6b6dcf711b027c Mon Sep 17 00:00:00 2001
From: Matt Friedman <maf675@gmail.com>
Date: Wed, 27 Jan 2016 12:24:18 -0800
Subject: [ticket/14434] Remove redundant conditional

PHPBB3-14434
---
 phpBB/phpbb/db/migrator.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'phpBB/phpbb/db')

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;
 		}
-- 
cgit v1.2.1