mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/14831] Optimize code construction
PHPBB3-14831
This commit is contained in:
@@ -91,14 +91,12 @@ class module implements \phpbb\db\migration\tool\tool_interface
|
|||||||
if ($parent !== false)
|
if ($parent !== false)
|
||||||
{
|
{
|
||||||
$parent = $this->get_parent_module_id($parent, $module, false);
|
$parent = $this->get_parent_module_id($parent, $module, false);
|
||||||
if ($parent !== false)
|
if ($parent === false)
|
||||||
{
|
|
||||||
$parent_sql = 'AND parent_id = ' . (int) $parent;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$parent_sql = 'AND parent_id = ' . (int) $parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = 'SELECT module_id
|
$sql = 'SELECT module_id
|
||||||
|
Reference in New Issue
Block a user