mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/15586] Fixed adding module the automatic way without specifying modes
PHPBB3-15586
This commit is contained in:
parent
adc75b700f
commit
2d5fe90ed5
1 changed files with 0 additions and 6 deletions
|
@ -514,12 +514,6 @@ class module implements \phpbb\db\migration\tool\tool_interface
|
|||
// Allow '' to be sent as 0
|
||||
$parent_id = $parent_id ?: 0;
|
||||
|
||||
// If automatic adding is in action, convert array back to string to simplify things
|
||||
if (is_array($data) && count($data) == 1)
|
||||
{
|
||||
$data = $data['module_langname'];
|
||||
}
|
||||
|
||||
if (!is_numeric($parent_id))
|
||||
{
|
||||
// Refresh the $module_categories array
|
||||
|
|
Loading…
Add table
Reference in a new issue