From: moodler Date: Fri, 26 Jan 2007 06:23:53 +0000 (+0000) Subject: Some slight modifications to the css classes for one-tab lines MDL-7782 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=65c8c79335b1da44ec7a328556ee97280563a59f;p=moodle.git Some slight modifications to the css classes for one-tab lines MDL-7782 --- 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) {