Skip to content
Snippets Groups Projects
Commit ca22bba7 authored by Olav Morken's avatar Olav Morken
Browse files

discopower: Hide empty tabs.

Thanks to Dyonisius Visser for fixing this!

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2851 44740490-163a-0410-bde0-09ae8108e29a
parent 1937db60
No related branches found
No related tags found
No related merge requests found
...@@ -149,7 +149,9 @@ if (!empty($faventry)) { ...@@ -149,7 +149,9 @@ if (!empty($faventry)) {
$tabs = array_keys( $this->data['idplist']); $tabs = array_keys( $this->data['idplist']);
foreach ($tabs AS $tab) { foreach ($tabs AS $tab) {
echo '<li><a href="#' . $tab . '"><span>' . $this->t('{discopower:tabs:' . $tab . '}') . '</span></a></li> '; if(!empty($this->data['idplist'][$tab])) {
echo '<li><a href="#' . $tab . '"><span>' . $this->t('{discopower:tabs:' . $tab . '}') . '</span></a></li> ';
}
} }
?> ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment