mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:07 +01:00
fix broken filemanager after PM integration commit
array_merge_recursive accumulates values in sub-arrays: array_merge_recursive(['nm'=>['get_rows'=>'a.c.m']], ['nm'=>['get_rows'=>'a.c.m']]) === ['nm'=>['get_rows'=>['a.c.m','a.c.m']]
This commit is contained in:
parent
60bc11a66e
commit
7d7557fe3d
@ -119,22 +119,22 @@ class Etemplate extends Etemplate\Widget\Template
|
||||
{
|
||||
if (!empty($extra['data']) && is_array($extra['data']))
|
||||
{
|
||||
$content = array_merge_recursive($content, $extra['data']);
|
||||
$content = self::complete_array_merge($content, $extra['data']);
|
||||
}
|
||||
|
||||
if (!empty($extra['preserve']) && is_array($extra['preserve']))
|
||||
{
|
||||
$preserv = array_merge_recursive($preserv, $extra['preserve']);
|
||||
$preserv = self::complete_array_merge($preserv, $extra['preserve']);
|
||||
}
|
||||
|
||||
if (!empty($extra['readonlys']) && is_array($extra['readonlys']))
|
||||
{
|
||||
$readonlys = array_merge_recursive($readonlys, $extra['readonlys']);
|
||||
$readonlys = self::complete_array_merge($readonlys, $extra['readonlys']);
|
||||
}
|
||||
|
||||
if (!empty($extra['sel_options']) && is_array($extra['sel_options']))
|
||||
{
|
||||
$sel_options = array_merge_recursive($sel_options, $extra['sel_options']);
|
||||
$sel_options = self::complete_array_merge($sel_options, $extra['sel_options']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user