[ticket/15586] Fixed adding module the automatic way without specifying modes

PHPBB3-15586
This commit is contained in:
kasimi 2018-03-11 15:24:29 +01:00
parent adc75b700f
commit 2d5fe90ed5
No known key found for this signature in database
GPG key ID: 3163AB573241193A

View file

@ -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