mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/14831] Optimize code construction
PHPBB3-14831
This commit is contained in:
parent
849cd74700
commit
77f1bac64b
1 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue