X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/71acf4950362871b3ad6bc168d08db422edf0509..6a5d60ab6ce03a168256c9b77ad1fd3166d50c14:/lib/MECON/HTML/Arbol.php diff --git a/lib/MECON/HTML/Arbol.php b/lib/MECON/HTML/Arbol.php index 0ba867c..cf919b0 100644 --- a/lib/MECON/HTML/Arbol.php +++ b/lib/MECON/HTML/Arbol.php @@ -59,17 +59,19 @@ class HTML_Arbol extends HTML_Table function expandir($dat, $n) { $imagen = ''; - $bullets = array('', - '/MECON/images/arbol_bullet_1.gif', - '/MECON/images/arbol_bullet_2.gif', - '/MECON/images/arbol_bullet_3.gif'); - $tabulados = array(0, 7, 13, 20); + $bullets = array( + '', + '/MECON/images/arbol_bullet_1.gif', + '/MECON/images/arbol_bullet_2.gif', + '/MECON/images/arbol_bullet_3.gif' + ); + $tabulados = 7; $classes = array('menu', 'menu1', 'menu1', 'menu2'); $atr = array('border' => '0', - 'width' => $tabulados[$n], + 'width' => $n * $tabulados, 'height' => '10'); - $imagen =& new HTML_Image($bullets[$n], 'bullet', $atr); + $imagen =& new HTML_Image(@$bullets[$n] ? $bullets[$n] : '', 'bullet', $atr); foreach($dat as $e) { $e['titulo'] = $imagen->toHTML().$e['titulo'];