diff options
Diffstat (limited to 'phpBB/phpbb/db')
| -rw-r--r-- | phpBB/phpbb/db/migration/tool/module.php | 8 | 
1 files changed, 3 insertions, 5 deletions
diff --git a/phpBB/phpbb/db/migration/tool/module.php b/phpBB/phpbb/db/migration/tool/module.php index a543fd5cab..7ea7d1dac1 100644 --- a/phpBB/phpbb/db/migration/tool/module.php +++ b/phpBB/phpbb/db/migration/tool/module.php @@ -91,14 +91,12 @@ class module implements \phpbb\db\migration\tool\tool_interface  		if ($parent !== false)  		{  			$parent = $this->get_parent_module_id($parent, $module, false); -			if ($parent !== false) -			{ -				$parent_sql = 'AND parent_id = ' . (int) $parent; -			} -			else +			if ($parent === false)  			{  				return false;  			} + +			$parent_sql = 'AND parent_id = ' . (int) $parent;  		}  		$sql = 'SELECT module_id  | 
