1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

Merge pull request #5158 from kasimi/ticket/15586

[ticket/15586] Fixed adding module the automatic way without specifying modes
This commit is contained in:
Marc Alexander
2018-06-17 11:35:08 +02:00
7 changed files with 183 additions and 6 deletions

View File

@@ -519,12 +519,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