mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
fixed wrongly disabled tabs
This commit is contained in:
parent
e8ac0674e1
commit
c3d3ca9973
@ -105,10 +105,12 @@
|
|||||||
foreach(is_array($readonlys) ? $readonlys : array($readonlys => true) as $name => $disable)
|
foreach(is_array($readonlys) ? $readonlys : array($readonlys => true) as $name => $disable)
|
||||||
{
|
{
|
||||||
if ($name && $disable && (($key = array_search($name, $names)) !== false ||
|
if ($name && $disable && (($key = array_search($name, $names)) !== false ||
|
||||||
($key = array_search($name, $short_names) !== false)))
|
($key = array_search($name, $short_names)) !== false))
|
||||||
{
|
{
|
||||||
unset($names[$key]);
|
unset($names[$key]);
|
||||||
$names = array_values($names);
|
$names = array_values($names);
|
||||||
|
unset($short_names[$key]);
|
||||||
|
$short_names = array_values($short_names);
|
||||||
unset($helps[$key]);
|
unset($helps[$key]);
|
||||||
$helps = array_values($helps);
|
$helps = array_values($helps);
|
||||||
unset($labels[$key]);
|
unset($labels[$key]);
|
||||||
|
Loading…
Reference in New Issue
Block a user