From: Leandro Lucarella Date: Fri, 19 Sep 2003 15:28:10 +0000 (+0000) Subject: Bugfix. X-Git-Tag: svn_import~271 X-Git-Url: https://git.llucax.com/mecon/meconlib.git/commitdiff_plain/3df26b6027dd37d5048e27fc8e27192ab2c9d4e9?ds=sidebyside Bugfix. --- diff --git a/lib/MECON/HTML/ArbolDB.php b/lib/MECON/HTML/ArbolDB.php index 31e7577..311bed4 100644 --- a/lib/MECON/HTML/ArbolDB.php +++ b/lib/MECON/HTML/ArbolDB.php @@ -126,7 +126,7 @@ class MECON_HTML_ArbolDB extends MECON_HTML_Arbol * @return void * @access public */ - function MECON_HTML_ArbolDB($dbdata, $titulo, $link_append = '', $expandir = false) + function MECON_HTML_ArbolDB($dbdata, $titulo, $link_append = '', $expandir = true) { if(isset($dbdata['id_padre'])) $this->padre = $dbdata['id_padre']; @@ -145,7 +145,7 @@ class MECON_HTML_ArbolDB extends MECON_HTML_Arbol $this->order = ' ORDER BY '.$dbdata['nombre'].' '.$dbdata['order']; $this->db = $dbdata['db']; - if($expandir) + if(!$expandir) { $this->expandir = array($this->id_activo); if(isset($this->id_activo))