diff options
-rw-r--r-- | classes/Misc.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/classes/Misc.php b/classes/Misc.php index 06126c83..6714bb48 100644 --- a/classes/Misc.php +++ b/classes/Misc.php @@ -682,8 +682,10 @@ echo "<table class=\"tabs\"><tr>\n"; #echo "<div class=\"tabs\">\n"; - # FIXME: don't count hidden tabs - $width = (int)(100 / count($tabs)).'%'; + if (count($tabs) > 0) + $width = (int)(100 / count($tabs)).'%'; + else + $width = 1; foreach ($tabs as $tab_id => $tab) { $active = ($tab_id == $activetab) ? ' active' : ''; |