X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Finclude%2Fclass_tabs.inc;h=c7666fddff52ffb86e498d1299977eb3bb6f2fb1;hb=53409955c9deafe55d3832d2b3d6550ad7a904c9;hp=3245241a2ae241e11a07ff86d3e5ebb186b64dec;hpb=7614ce4700a112acf923e82ef2feddfd1497ef65;p=gosa.git 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;