diff options
Diffstat (limited to '')
-rw-r--r-- | admin/include/tabsheet.class.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/admin/include/tabsheet.class.php b/admin/include/tabsheet.class.php index 02ee9a3d1..fdeeb2afd 100644 --- a/admin/include/tabsheet.class.php +++ b/admin/include/tabsheet.class.php @@ -89,6 +89,11 @@ class tabsheet function select($name) { $this->sheets = trigger_event('tabsheet_before_select', $this->sheets, $this->uniqid); + if (!array_key_exists($name, $this->sheets)) + { + $keys = array_keys($this->sheets); + $name = $keys[0]; + } $this->selected = $name; } |