From b12475b5fb8b24cade1c6f469ca9017871487789 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mart=C3=ADn=20Marrese?= Date: Thu, 17 Jul 2003 22:41:48 +0000 Subject: [PATCH] Workarround para que no explote con un nivel de profundidad mayor a 4. --- lib/MECON/HTML/Arbol.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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']; -- 2.43.0