]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Only displaying navigation div when tabs are present.
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 23 Jun 2010 14:40:03 +0000 (14:40 +0000)
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 23 Jun 2010 14:40:03 +0000 (14:40 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6554 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/navigation/tabs.php

index 38a85dca2fa7c311865f6214b69f5278aa19d05d..fd6d8b8fe97968ef7afb4ccd7bda8da3c1f2ed83 100644 (file)
@@ -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>