Fix incorrect filtering of custom blocks from drop-down list
This commit is contained in:
@@ -857,24 +857,27 @@ class acp_portal
|
|||||||
}
|
}
|
||||||
|
|
||||||
// do we want to add the module to the side columns or to the center columns?
|
// do we want to add the module to the side columns or to the center columns?
|
||||||
if (in_array($column_string, array('left', 'right')))
|
if ($module_class != 'custom')
|
||||||
{
|
{
|
||||||
// does the module already exist in the side columns?
|
if (in_array($column_string, array('left', 'right')))
|
||||||
if (isset($module_column[$module_class]) &&
|
|
||||||
(in_array('left', $module_column[$module_class]) || in_array('right', $module_column[$module_class])))
|
|
||||||
{
|
{
|
||||||
continue;
|
// does the module already exist in the side columns?
|
||||||
|
if (isset($module_column[$module_class]) &&
|
||||||
|
(in_array('left', $module_column[$module_class]) || in_array('right', $module_column[$module_class])))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
elseif (in_array($column_string, array('center', 'top', 'bottom')))
|
||||||
elseif (in_array($column_string, array('center', 'top', 'bottom')))
|
|
||||||
{
|
|
||||||
// does the module already exist in the center columns?
|
|
||||||
if (isset($module_column[$module_class]) &&
|
|
||||||
(in_array('center', $module_column[$module_class]) ||
|
|
||||||
in_array('top', $module_column[$module_class]) ||
|
|
||||||
in_array('bottom', $module_column[$module_class])))
|
|
||||||
{
|
{
|
||||||
continue;
|
// does the module already exist in the center columns?
|
||||||
|
if (isset($module_column[$module_class]) &&
|
||||||
|
(in_array('center', $module_column[$module_class]) ||
|
||||||
|
in_array('top', $module_column[$module_class]) ||
|
||||||
|
in_array('bottom', $module_column[$module_class])))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user