function html_tail() { if (count($this->nodes) == 0) { $this->rootnode->out('<tr style="display:none"><td style="display:none"></td></tr>'); } parent::html_tail(); }