From 53409955c9deafe55d3832d2b3d6550ad7a904c9 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 12 Jun 2008 12:43:58 +0000 Subject: [PATCH] Updated class tab, ensure that the selecte tab (current) is valid: git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11302 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_tabs.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gosa-core/include/class_tabs.inc b/gosa-core/include/class_tabs.inc index 3245241a2..c7666fddf 100644 --- a/gosa-core/include/class_tabs.inc +++ b/gosa-core/include/class_tabs.inc @@ -96,6 +96,9 @@ class tabs function execute() { + /* Ensure that the currently selected tab is valid. */ + if(!isset($this->by_name[$this->current])) $this->current = key($this->by_name); + /* Rotate current to last */ $this->last= $this->current; -- 2.30.2