From 029901d1133fadea3f735e623827c424199e3236 Mon Sep 17 00:00:00 2001 From: Augusto Teixeira da Costa Date: Thu, 1 Dec 2016 14:25:10 -0200 Subject: [PATCH] Fixed Error Line 686 Error: Divid By Zero --- classes/Misc.php | 6 ++++-- 1 file 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 "\n"; #echo "
\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' : ''; -- 2.39.5