diff --git a/mod/help.php b/mod/help.php
index 5465d3e90..722256927 100644
--- a/mod/help.php
+++ b/mod/help.php
@@ -62,7 +62,7 @@ function help_content(&$a) {
if ($filename !== "Home") {
// create TOC but not for home
$lines = explode("\n", $html);
- $toc="
TOC
";
+ $toc="TOC
";
$lastlevel=1;
$idnum = array(0,0,0,0,0,0,0);
foreach($lines as &$line){
@@ -84,7 +84,7 @@ function help_content(&$a) {
}
}
}
- for($k=1;$k<$lastlevel; $k++) $toc.="
";
+ for($k=0;$k<$lastlevel; $k++) $toc.="
";
$html = implode("\n",$lines);
$a->page['aside'] = $toc.$a->page['aside'];