From 65c8c79335b1da44ec7a328556ee97280563a59f Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 26 Jan 2007 06:23:53 +0000 Subject: [PATCH] Some slight modifications to the css classes for one-tab lines MDL-7782 --- lib/weblib.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/weblib.php b/lib/weblib.php index db1285f81e..1664068a1b 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -5432,7 +5432,10 @@ function convert_tree_to_html($tree, $row=0) { foreach ($tree as $tab) { $count--; // countdown to zero - if ($first) { + if ($first && ($count == 0)) { // Just one in the row + $str .= '
  • '; + $first = false; + } else if ($first) { $str .= '
  • '; $first = false; } else if ($count == 0) { -- 2.39.5