return true;
}
-function LSdebug_print($return=false) {
+function LSdebug_print($return=false,$ul=true) {
if (( $GLOBALS['LSdebug_fields'] ) && (LSdebug)) {
- $txt='<ul>';
+ if ($ul) $txt='<ul>'; else $ul="";
foreach($GLOBALS['LSdebug_fields'] as $debug) {
if (is_array($debug)||is_object($debug)) {
$txt.='<li><pre>'.print_r($debug,true).'</pre></li>';
$txt.='<li><pre>'.$debug.'</pre></li>';
}
}
- $txt.='</ul>';
+ if ($ul) $txt.='</ul>';
$GLOBALS['Smarty'] -> assign('LSdebug',$txt);
if ($return) {
return $txt;