diff --git a/phpgwapi/inc/class.menutree.inc.php b/phpgwapi/inc/class.menutree.inc.php index 7d5f9b16b2..5ce7dc5fbc 100644 --- a/phpgwapi/inc/class.menutree.inc.php +++ b/phpgwapi/inc/class.menutree.inc.php @@ -217,17 +217,17 @@ class menutree { /* Always display the extreme top level */ /****************************************/ if($cnt==0) { - $str = "\n"; - $str .= '' . $this->root_level_value . ''; - $str .= "\n"; - for ($i=0; $i<$maxlevel; $i++) $str .= ""; - $str .= "\n"; + $str = '
'."\n"; + $str .= '' . $this->root_level_value . ''; + $str .= "\n".''; + for ($i=0; $i<$maxlevel; $i++) $str .= ''; + $str .= ''."\n"; } /****************************************/ /* start new row */ /****************************************/ - $str .= ""; + $str .= ''; /****************************************/ /* vertical lines from higher levels */ @@ -258,9 +258,9 @@ class menutree { if ($tree[$cnt+1][0]>$tree[$cnt][0]) { if ($expand[$cnt]==0) - $str .= ""; + $str .= ''; else - $str .= ""; + $str .= ''; } else { /*************************/ /* Tree Leaf */ @@ -273,19 +273,19 @@ class menutree { /* output item text */ /****************************************/ if ($tree[$cnt][2]=="") - $str .= ""; + $str .= ''; else - $str .= ""; + $str .= ''; /****************************************/ /* end row */ /****************************************/ - $str .= "\n"; + $str .= ''."\n"; } $cnt++; } - $str .= "
link($script,$params)."\">\"+\"+link($script,$params)."\">\"-\"-".$tree[$cnt][1]."'.$tree[$cnt][1].'link($tree[$cnt][2],$params)."\" target=\"".$tree[$cnt][3]."\">".$tree[$cnt][1]."'.$tree[$cnt][1].'
\n"; + $str .= ''."\n"; return $str;