From: hickert Date: Thu, 12 Jun 2008 12:43:58 +0000 (+0000) Subject: Updated class tab, ensure that the selecte tab (current) is valid: X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=53409955c9deafe55d3832d2b3d6550ad7a904c9;p=gosa.git 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 --- 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;