if ($xtr_prop) {
echo ' '.$prop;
}
- if ($style && !$usecss) {
+ if ($style && !$usecss && !is_array($style)) {
+ /* last premisse is to prevent 'style="Array"' in the output */
echo ' style="'.$style.'"';
}
if ($javascript) {
echo $text;
foreach ($style as $k => $v) { /* if value of key value = true close the tag */
if ($v) {
- echo '</'.$v.'>';
+ echo '</'.$k.'>';
}
}
} else {
}
}
echo "\n";
- $indent.=' ';
+ $indentmore = $indent . ' ';
for($i = 0;$i<$cnt;$i++) {
$el = $this->html_el[$i];
- $el->echoHtml($usecss,$indent);
+ $el->echoHtml($usecss,$indentmore);
}
if ($style && !$usecss) {
foreach ($style as $k => $v) { /* if value of key value = true close the tag */
if ($v) {
- echo '</'.$v.'>';
+ echo '</'.$k.'>';
}
}
}