aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation/tabs.php
diff options
context:
space:
mode:
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-23 14:40:03 +0000
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-23 14:40:03 +0000
commit5932efdc421e5adb763b0c7e18509792e6f5e042 (patch)
tree29d6af1982723a0f690682e48d5785c1b788c11d /views/default/navigation/tabs.php
parent3fb6a43748aa2ad47a34b6170771f56bbb466d0e (diff)
downloadelgg-5932efdc421e5adb763b0c7e18509792e6f5e042.tar.gz
elgg-5932efdc421e5adb763b0c7e18509792e6f5e042.tar.bz2
Only displaying navigation div when tabs are present.
git-svn-id: http://code.elgg.org/elgg/trunk@6554 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/navigation/tabs.php')
-rw-r--r--views/default/navigation/tabs.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/default/navigation/tabs.php b/views/default/navigation/tabs.php
index 38a85dca2..fd6d8b8fe 100644
--- a/views/default/navigation/tabs.php
+++ b/views/default/navigation/tabs.php
@@ -20,7 +20,7 @@ if ($type == 'horizontal') {
$type_class = "elgg_vertical_tabbed_nav";
}
-if (isset($vars['tabs'])) {
+if (isset($vars['tabs']) && is_array($vars['tabs']) && !empty($vars['tabs'])) {
?>
<div class="<?php echo $type_class; ?>">
<ul>