diff --git a/library/Icinga/Web/Widget/Tabs.php b/library/Icinga/Web/Widget/Tabs.php index b9a9a539d..e83d10783 100644 --- a/library/Icinga/Web/Widget/Tabs.php +++ b/library/Icinga/Web/Widget/Tabs.php @@ -328,9 +328,13 @@ EOT; $tab = $this->get($this->getActiveName()); if ($tab !== null) { - $caption = $this->view()->escape( + $label = $this->view()->escape( $tab->getLabel() ); + } + + if (! empty($label)) { + $caption = $label; } else { $caption = t('Content'); }