From 99a9132cd59dea56ae1a323836cafe175ed54aa6 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 23 Mar 2010 19:34:40 +0000 Subject: [PATCH] "fixed not working activation of tab with different prefix" --- etemplate/inc/class.tab_widget.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.tab_widget.inc.php b/etemplate/inc/class.tab_widget.inc.php index ac89f41c34..a30c45625c 100644 --- a/etemplate/inc/class.tab_widget.inc.php +++ b/etemplate/inc/class.tab_widget.inc.php @@ -85,8 +85,6 @@ $labels = array_values($labels); } } - $all_names = implode('|',$names); - $tab_widget = new etemplate('etemplate.tab_widget'); $tab_widget->no_onclick = true; @@ -105,6 +103,8 @@ $selected_tab = $name; } } + $all_names = implode('|',$names); + if (empty($selected_tab)) { $value = $selected_tab = $names[0];