From c3d3ca9973d4ee21562ca8e6f7714bba2b2bbfd7 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 25 Oct 2013 12:26:44 +0000 Subject: [PATCH] fixed wrongly disabled tabs --- etemplate/inc/class.tab_widget.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.tab_widget.inc.php b/etemplate/inc/class.tab_widget.inc.php index 2f09a99c36..eda187d9f9 100644 --- a/etemplate/inc/class.tab_widget.inc.php +++ b/etemplate/inc/class.tab_widget.inc.php @@ -105,10 +105,12 @@ foreach(is_array($readonlys) ? $readonlys : array($readonlys => true) as $name => $disable) { 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]); $names = array_values($names); + unset($short_names[$key]); + $short_names = array_values($short_names); unset($helps[$key]); $helps = array_values($helps); unset($labels[$key]);