aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/tabsheet.class.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2012-07-23 11:52:18 +0000
committermistic100 <mistic@piwigo.org>2012-07-23 11:52:18 +0000
commit18bf888d16ed366ac7a2aa417442bc4f3be9d92d (patch)
tree42f4f4ab774a9b3848b315570b0b6a15cea7d4ad /admin/include/tabsheet.class.php
parent798de81516100c4037949c7e73c4c5af1915a088 (diff)
Merged revision(s) 16928 from trunk:
feature 2703: make it easy for plugins to add tabs in admin screens centralize all core tabs in one file git-svn-id: http://piwigo.org/svn/branches/2.4@16929 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include/tabsheet.class.php')
-rw-r--r--admin/include/tabsheet.class.php5
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;
}